/* ================================
   Login page - modern glass design
   ================================ */

.auth-body {
    background: #050d1f;
    color: #eaf1ff;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #050d1f 0%, #0a1f4d 55%, #0b2a6b 100%);
    overflow: hidden;
    z-index: 0;
}

.auth-bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: orb-float 14s ease-in-out infinite alternate;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: #1d4ed8;
    top: -120px;
    left: -120px;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: #0891b2;
    bottom: -140px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: #7c3aed;
    top: 40%;
    right: 18%;
    animation-delay: -9s;
    opacity: 0.35;
}

@keyframes orb-float {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(40px, -30px, 0) scale(1.12);
    }
}

.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.auth-card {
    width: min(460px, 100%);
    background: rgba(10, 22, 45, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(2, 8, 23, 0.6);
    padding: 30px 28px 22px;
    animation: card-in 0.5s ease-out;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.45);
}

.auth-logo svg {
    width: 30px;
    height: 30px;
}

.auth-brand h1 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: 0.2px;
    color: #f2f6ff;
}

.auth-tagline {
    margin: 0;
    color: #93a4c3;
    font-size: 13px;
    line-height: 1.5;
}

.auth-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.meta-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    padding: 9px 10px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8ea3c8;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 12.5px;
    font-weight: 700;
    color: #dbe7ff;
}

.meta-value.mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.shift-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    font-size: 11.5px;
    font-weight: 800;
}

.auth-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: #c6d4f2;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.auth-form .field {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #b9c8e6;
    margin-bottom: 6px;
}

.control {
    position: relative;
}

.control .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f97c2;
    display: flex;
    pointer-events: none;
}

.control .icon svg {
    width: 17px;
    height: 17px;
}

.control input {
    width: 100%;
    padding: 12px 42px 12px 38px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #eaf1ff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.control input::placeholder {
    color: #6d82a8;
}

.control input:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f97c2;
    cursor: pointer;
    padding: 6px;
    display: flex;
    border-radius: 8px;
}

.eye:hover {
    color: #dbe7ff;
    background: rgba(255, 255, 255, 0.06);
}

.eye.active {
    color: #22d3ee;
}

.eye svg {
    width: 17px;
    height: 17px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4px;
    position: relative;
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.45);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.auth-submit.loading .btn-label {
    visibility: hidden;
}

.auth-submit.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-demo {
    margin-top: 16px;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
    padding-top: 10px;
    color: #8ea3c8;
    font-size: 12px;
}

.auth-demo summary {
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.auth-demo summary:hover {
    color: #dbe7ff;
}

.auth-demo .demo-list {
    margin-top: 8px;
    display: grid;
    gap: 3px;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: #7d90b5;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 18px 18px;
    }

    .auth-meta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb,
    .auth-card {
        animation: none;
    }
}