:root {
    --ink: #0c121a;
    --navy: #111827;
    --slate: #1f2937;
    --mist: #e5e7eb;
    --gold: #f7b500;
    --amber: #ffb347;
    --teal: #2dd4bf;
    --glass: rgba(255, 255, 255, 0.08);
    --shadow: 0 28px 60px rgba(8, 15, 26, 0.35);
}

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

body {
    font-family: "Space Grotesk", sans-serif;
    background: radial-gradient(circle at top left, #12203a 0%, #0b1019 45%, #05070c 100%);
    color: #f8fafc;
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(5, 7, 12, 0.92));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 179, 71, 0.2), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.2), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(247, 181, 0, 0.12), transparent 60%);
    pointer-events: none;
}

.login-brand,
.login-form {
    position: relative;
    padding: 48px 42px;
    z-index: 1;
}

.login-brand {
    display: flex;
    flex-direction: column;
    gap: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--glass);
    display: grid;
    place-items: center;
}

.brand-mark img {
    width: 48px;
    height: 48px;
}

.brand-copy h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.brand-eyebrow {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.brand-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.7);
}

.login-form h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.form-intro {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

form {
    display: grid;
    gap: 16px;
}

label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 14px 16px;
    color: #f8fafc;
    font-size: 0.98rem;
}

input:focus {
    outline: none;
    border-color: rgba(255, 179, 71, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18);
}

button {
    border: none;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(120deg, var(--amber), var(--gold));
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(247, 181, 0, 0.3);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    min-height: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.form-message.error {
    color: #fca5a5;
}

.form-message.success {
    color: #86efac;
}

.form-footer {
    margin-top: 26px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.form-footer a {
    color: var(--teal);
    text-decoration: none;
    margin-left: 6px;
    font-weight: 600;
}

.footer-divider {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
}

.form-footer a:hover {
    text-decoration: underline;
}

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

    .login-brand {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 640px) {
    .login-brand,
    .login-form {
        padding: 32px 24px;
    }

    .brand-copy h1 {
        font-size: 2rem;
    }
}
