@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.auth-page {
    min-height: 100vh;
    background: #f1f5f9;
    color: #0f172a;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    min-height: 100vh;
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px clamp(40px, 7vw, 110px);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.35), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(239, 68, 68, 0.22), transparent 30%),
        linear-gradient(145deg, #0f172a, #020617);
    color: #ffffff;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.025),
        0 0 0 110px rgba(255, 255, 255, 0.018);
}

.login-brand,
.login-security-note {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
}

.login-brand-icon,
.login-mobile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.3);
}

.login-brand-panel > div:nth-child(2) {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.login-eyebrow {
    margin-bottom: 12px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    max-width: 620px;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.login-description {
    max-width: 560px;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
}

.login-security-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 11px 15px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.48);
    color: #cbd5e1;
    font-size: 12px;
}

.login-security-note i {
    color: #22c55e;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f8fafc;
}

.login-card {
    width: min(100%, 440px);
}

.login-card-header {
    margin-bottom: 28px;
}

.login-mobile-logo {
    display: none;
    margin-bottom: 24px;
}

.login-card-header h2 {
    margin-bottom: 8px;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.login-card-header > p:last-child {
    color: #64748b;
    font-size: 14px;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.5;
}

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

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

.auth-alert-warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #ffffff;
    color: #94a3b8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.11);
}

.auth-input-wrap input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    margin-top: 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

@media (max-width: 900px) {
    .login-shell {
        display: block;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 28px 20px;
    }

    .login-mobile-logo {
        display: inline-flex;
    }
}
