/* ATech Logs — sign-in page */

.page-auth {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding: clamp(1rem, 3vw, 2.5rem);
    background:
        linear-gradient(135deg, rgba(7, 9, 14, 0.68) 0%, rgba(7, 9, 14, 0.48) 45%, rgba(7, 9, 14, 0.62) 100%),
        url("/img/atechlogback.png") center / cover no-repeat fixed;
}

.auth__backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.58;
    animation: auth-orb-drift 18s ease-in-out infinite;
}

.auth__orb--1 {
    width: 420px;
    height: 420px;
    top: -8%;
    right: 10%;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.35), transparent 70%);
}

.auth__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -6%;
    left: 4%;
    background: radial-gradient(circle, rgba(91, 159, 212, 0.28), transparent 70%);
    animation-delay: -9s;
}

.auth__grid {
    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: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

@keyframes auth-orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-24px, 18px) scale(1.06); }
}

.auth__shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    min-height: calc(100vh - clamp(2rem, 6vw, 5rem));
}

/* Brand panel */
.auth__brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0.5rem 0;
}

.auth__logo-link {
    display: inline-block;
    width: fit-content;
    transition: opacity var(--transition);
}

.auth__logo-link:hover {
    opacity: 0.88;
}

.auth__logo {
    display: block;
    width: min(360px, 90vw);
    height: auto;
}

.auth__eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(79, 209, 197, 0.28);
    border-radius: 999px;
    background: rgba(79, 209, 197, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth__title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.auth__title-accent {
    display: block;
    background: linear-gradient(135deg, #4fd1c5 0%, #5b9fd4 55%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth__lead {
    margin: 0 0 2rem;
    max-width: 34rem;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    line-height: 1.65;
}

.auth__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #c5d0e2;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--accent);
}

.auth__feature-icon svg {
    width: 1rem;
    height: 1rem;
}

.auth__brand-foot {
    margin: auto 0 0;
    padding-top: 1.5rem;
    color: #6f7d94;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Sign-in card */
.auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth__card {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background: rgba(12, 16, 24, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow), 0 0 0 1px rgba(79, 209, 197, 0.06) inset;
}

.auth__card-head {
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth__symbol {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(79, 209, 197, 0.2));
}

.auth__card-head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.auth__card-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.auth__card-head strong {
    color: #c8d4e8;
    font-weight: 600;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth__field label {
    display: block;
    margin-bottom: 0.45rem;
    color: #b4c0d4;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth__input-wrap {
    position: relative;
}

.auth__input {
    width: 100%;
    height: 50px;
    padding: 0 2.85rem 0 2.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(4, 8, 14, 0.55);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth__input::placeholder {
    color: #6e7a8f;
}

.auth__input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.auth__input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: rgba(4, 8, 14, 0.72);
    box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.12);
}

.auth__input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #7b879c;
    pointer-events: none;
}

.auth__toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #7b879c;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.auth__toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.auth__toggle svg {
    width: 1.05rem;
    height: 1.05rem;
}

.auth__toggle .auth__eye-on {
    display: none;
}

.auth__toggle.is-visible .auth__eye-off {
    display: none;
}

.auth__toggle.is-visible .auth__eye-on {
    display: block;
}

.auth__error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: var(--radius);
    background: var(--danger-bg);
    color: #fecdd3;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth__error svg {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.1rem;
    color: var(--danger);
}

.auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    height: 50px;
    margin-top: 0.15rem;
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #3dd9cd 0%, #38bdf8 100%);
    color: #042f2e;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(45, 212, 191, 0.28);
    transition: transform 0.15s, box-shadow var(--transition), filter var(--transition);
}

.auth__submit svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform var(--transition);
}

.auth__submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 14px 36px rgba(45, 212, 191, 0.34);
}

.auth__submit:hover svg {
    transform: translateX(2px);
}

.auth__submit:active {
    transform: scale(0.985);
}

.auth__secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.35rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: #6f7d94;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth__secure-note svg {
    width: 0.95rem;
    height: 0.95rem;
    color: #5a687f;
}

@media (max-width: 900px) {
    .auth__shell {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
    }

    .auth__brand {
        gap: 1.25rem;
        text-align: center;
        align-items: center;
    }

    .auth__lead {
        margin-bottom: 1.25rem;
    }

    .auth__features {
        grid-template-columns: 1fr;
        text-align: left;
        width: 100%;
        max-width: 18rem;
    }

    .auth__brand-foot {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .auth {
        padding: 1rem;
    }

    .auth__card {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth__orb {
        animation: none;
    }

    .auth__submit:hover svg {
        transform: none;
    }
}
