/* EthioTech workspace auth — login / forgot / reset */

:root {
    --auth-navy: #07111f;
    --auth-navy-2: #0a1628;
    --auth-green: #078930;
    --auth-green-dark: #056b24;
    --auth-gold: #fcd116;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
}

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

html,
body.app-auth {
    margin: 0;
    min-height: 100%;
}

body.app-auth {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--auth-text);
    background: var(--auth-navy);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.app-auth__bg {
    position: fixed;
    inset: 0;
    background-color: var(--auth-navy-2);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    z-index: 0;
}

.app-auth__veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.72) 0%, rgba(7, 17, 31, 0.38) 42%, rgba(7, 17, 31, 0.82) 100%),
        linear-gradient(180deg, rgba(7, 137, 48, 0.18) 0%, transparent 42%, rgba(10, 22, 40, 0.55) 100%);
}

.app-auth__stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr minmax(22rem, 28rem);
    align-items: stretch;
}

.app-auth__story {
    display: none;
    padding: 2.5rem 3rem;
    color: #fff;
    flex-direction: column;
    justify-content: flex-end;
}

@media (min-width: 900px) {
    .app-auth__story {
        display: flex;
    }
}

.app-auth__kicker {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-gold);
}

.app-auth__headline {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 18ch;
}

.app-auth__lede {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.55;
}

.app-auth__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.app-auth__pillars li {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(252, 209, 22, 0.45);
    background: rgba(252, 209, 22, 0.1);
    color: #fff;
}

.app-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.15rem 2rem;
}

@media (min-width: 900px) {
    .app-auth__panel {
        padding: 2rem 2.25rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px);
    }
}

.app-auth__lang {
    display: inline-flex;
    align-self: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.15rem;
}

.app-auth__lang a {
    padding: 0.32rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.app-auth__lang a.is-active {
    background: var(--auth-gold);
    color: var(--auth-navy-2);
}

.app-auth__card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem 1.4rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
}

.app-auth__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-green), var(--auth-gold));
}

.app-auth__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 1.15rem;
}

.app-auth__logo {
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 1.05rem;
    background: var(--auth-navy-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(10, 22, 40, 0.25);
}

.app-auth__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.28rem;
}

.app-auth__logo-fallback {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.app-auth__brand-text h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-navy-2);
}

.app-auth__brand-text p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.app-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.app-auth__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.app-auth__input {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.7rem;
    background: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--auth-text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.app-auth__input:focus {
    background: #fff;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(7, 137, 48, 0.16);
}

.app-auth__submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--auth-green) 0%, var(--auth-green-dark) 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(7, 137, 48, 0.28);
    transition: transform 0.12s, box-shadow 0.12s;
}

.app-auth__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(7, 137, 48, 0.34);
}

.app-auth__links {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.95rem;
    font-size: 0.8rem;
}

.app-auth__links a {
    color: var(--auth-green-dark);
    font-weight: 650;
    text-decoration: none;
}

.app-auth__links a:hover {
    text-decoration: underline;
}

.app-auth__note {
    margin: 0.9rem 0 0;
    font-size: 0.75rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.app-auth__foot {
    margin-top: 1.1rem;
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.75rem;
}

.app-auth__foot a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.app-auth__foot a:hover {
    color: var(--auth-gold);
}

.app-auth .alert-error,
.app-auth .alert-success {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 0.95rem;
}

.app-auth .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.app-auth .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@media (max-width: 899px) {
    .app-auth__stage {
        grid-template-columns: 1fr;
    }

    .app-auth__panel {
        min-height: 100vh;
    }
}
