* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tm-yellow: #f4b400;
    --tm-yellow-strong: #ffcc14;
    --tm-ink: #111827;
    --tm-muted: #667085;
    --tm-line: rgba(17, 24, 39, 0.08);
    --tm-surface: rgba(255, 255, 255, 0.72);
    --tm-soft: #f8fafc;
}

body.login-page {
    font-family: "Inter", sans-serif;
    background: white;
    color: var(--tm-ink);
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 28px;
    padding: 28px;
    position: relative;
}

.login-left {
    padding: 110px 22px 34px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
    margin: 0 auto;
}

.brand-lockup {
    position: absolute;
    top: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    z-index: 5;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-wordmark {
    font-size: 1.12rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
}

.brand-wordmark span {
    color: var(--tm-yellow);
}

.brand-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: white;
    color: #4b5563;
    border: 1px solid rgba(244, 180, 0, 0.16);
    font-size: 0.78rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.brand-badge svg {
    width: 15px;
    height: 15px;
    color: var(--tm-yellow);
}

.brand-section h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-family: sans-serif;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #0f172a;
    margin-bottom: 18px;
}

.brand-section h1 span {
    color: var(--tm-yellow);
}

.brand-copy {
    max-width: 520px;
    color: #5f6c7b;
    font-size: 1.06rem;
    line-height: 1.8;
}

.brand-note-card {
    margin-top: 34px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 500px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    color: black;
}

.note-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(244, 180, 0, 0.2);
}

.brand-note-card strong {
    display: block;
    margin-bottom: 4px;
    color: #f9f9f9;
    font-size: 0.95rem;
}

.brand-note-card p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.93rem;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    background: var(--tm-surface);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.auth-header {
    margin-bottom: 26px;
}

.auth-header h2 {
    font-size: 2.05rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--tm-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.auth-alert.error {
    margin-top: 10px;
    background: #fff3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.auth-alert.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.field-stack {
    display: grid;
    gap: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    /* border-radius: 16px; */
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--tm-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.input-shell:focus-within {
    border-color: rgba(244, 180, 0, 0.72);
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.12);
    transform: translateY(-1px);
}

.input-icon {
    width: 42px;
    height: 42px;
    margin-left: 14px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: #000000;
    flex-shrink: 0;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.input-shell input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 14px;
    color: #111827;
    font-size: 1rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.input-shell input::placeholder {
    color: #98a2b3;
}

.password-shell input {
    padding-right: 72px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 0.84rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
}

.toggle-password:hover {
    background: #f8fafc;
    color: #111827;
}

.field-error {
    display: inline-block;
    margin-top: 7px;
    font-size: 0.82rem;
    color: #b42318;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0 18px;
}

.form-security-note {
    color: #667085;
    font-size: 0.86rem;
}

.forgot-link {
    color: #1f2937;
    text-decoration: underline;
    text-decoration-color: rgba(244, 180, 0, 0.8);
    text-underline-offset: 4px;
    font-size: 0.92rem;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

.forgot-link:hover {
    color: var(--tm-yellow);
}

.primary-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--tm-yellow-strong) 0%,
        #f4b400 100%
    );
    color: #111827;
    font-style:
        poppins,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(244, 180, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.01);
    box-shadow: 0 16px 28px rgba(244, 180, 0, 0.34);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(17, 24, 39, 0.22);
    border-top-color: #111827;
    animation: spin 0.8s linear infinite;
}

.primary-btn.is-loading .btn-loader {
    display: block;
}

.primary-btn.is-loading .btn-label {
    opacity: 0.6;
}

.auth-footer-copy {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    text-align: center;
    color: #667085;
    font-size: 0.93rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .brand-lockup {
        top: 16px;
        left: 16px;
    }

    .login-left {
        padding: 88px 10px 10px 10px;
    }

    .login-right {
        padding: 10px;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .login-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .brand-section h1 {
        font-size: 2.2rem;
    }

    .brand-copy {
        font-size: 0.98rem;
    }

    .form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
