:root {
    --purple: #3b0073;
    --purple-dark: #2a0053;
    --sand: #f4f1ff;
    --text: #1f1f2e;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    background: linear-gradient(120deg, #f6f7fb 0%, #eef0ff 60%, #f8f4ff 100%);
    color: var(--text);
}

.auth-shell {
    padding: 92px 20px 56px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    width: min(1040px, 100%);
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(14, 20, 61, 0.16);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.auth-panel {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-panel--brand {
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 38%),
                linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    position: relative;
}

.auth-panel--brand::after {
    content: "";
    position: absolute;
    inset: 26px -36px -40px 42px;
    background: radial-gradient(circle at 0% 30%, rgba(255, 255, 255, 0.09), transparent 45%);
    pointer-events: none;
}

.auth-panel--brand > * {
    position: relative;
    z-index: 1;
}

.auth-panel--form {
    background: #fff;
    align-items: center;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 12px;
}

.auth-lead {
    margin: 4px 0 2px;
    line-height: 1.6;
    opacity: 0.94;
}

.auth-highlights {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.auth-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    opacity: 0.96;
}

.auth-highlights li::before {
    content: "•";
    color: #f9d66c;
    font-size: 22px;
    line-height: 1;
}

.auth-logo img {
    width: 130px;
}

.auth-panel--form h2 {
    margin: 0;
    color: var(--purple);
    font-size: 24px;
}

.auth-subtitle {
    margin: 0;
    color: #5a6070;
}

.auth-form {
    margin-top: 8px;
    width: 100%;
    max-width: 440px;
}

.auth-form p {
    margin: 0 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-weight: 600;
    color: #2e3054;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d8e7;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #fcfcff;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(59, 0, 115, 0.12);
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: white;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(59, 0, 115, 0.25);
}

.auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-links {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-top: 10px;
}

.register-link,
.password-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover,
.password-link:hover {
    text-decoration: underline;
}

.auth-message {
    width: 100%;
    max-width: 440px;
    color: #d43b3b;
    background: #fff4f4;
    border: 1px solid #f0c4c4;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0;
}

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

    .auth-panel--brand {
        padding-bottom: 36px;
    }

    .auth-panel--form {
        padding-top: 32px;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 540px) {
    .auth-shell {
        padding-top: 86px;
    }

    .auth-panel {
        padding: 30px 22px;
    }

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

    .auth-panel--form h2 {
        font-size: 22px;
    }

    .auth-logo img {
        width: 112px;
    }
}
