:root {
    --primary: #234f9b;
    --primary-dark: #173b73;
    --accent: #0ea5e9;
    --surface: #0f172a;
    --muted: #6b7280;
    --border: rgba(15, 23, 42, 0.1);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 30px 80px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: radial-gradient(circle at top, rgba(14, 165, 233, 0.25), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-shell {
    width: min(410px, 100%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(35, 79, 155, 0.12));
    mask: linear-gradient(#000, transparent 85%);
    pointer-events: none;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand__logo {
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 16px;
}

.logistics-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: rgba(14, 165, 233, 0.08);
    color: var(--surface);
    margin: 0 auto 18px;
}

.logistics-brand__badge {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(35, 79, 155, 0.12);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.logistics-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: start;
}

.logistics-brand__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--surface);
}

.logistics-brand__subtitle {
    font-size: 0.9rem;
    color: var(--muted);
}

.brand img {
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.brand h1 {
    margin: 18px 0 8px;
    font-size: 1.7rem;
    color: var(--primary);
}

.brand p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-weight: 600;
    color: var(--surface);
}

.input-control {
    position: relative;
}

.input-control input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-size: 1rem;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.input-control input:focus {
    outline: none;
    border-color: rgba(35, 79, 155, 0.6);
    box-shadow: 0 0 0 4px rgba(35, 79, 155, 0.12);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #047857;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--muted);
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    body {
        padding: 24px 12px;
    }

    .login-shell {
        padding: 28px 24px;
    }

    .brand h1 {
        font-size: 1.5rem;
    }
}