:root {
    --bg-dark: #070b14;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #e5e7eb;
    --border: #e2e8f0;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: var(--text-dark);
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* Lado esquerdo */

.auth-left {
    position: relative;
    overflow: hidden;
    padding: 48px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.45), transparent 35%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.35), transparent 35%),
        linear-gradient(135deg, #020617 0%, #0f172a 60%, #111827 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-left::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    right: -120px;
    top: -120px;
}

.auth-left::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    left: -80px;
    bottom: -80px;
}

.brand,
.auth-hero,
.auth-cards {
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: white;
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.auth-hero {
    max-width: 680px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(147, 197, 253, 0.2);
    margin-bottom: 22px;
}

.auth-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.auth-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 620px;
}

.auth-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.info-card strong {
    display: block;
    font-size: 17px;
    margin-bottom: 8px;
}

.info-card span {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

/* Lado direito */

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 35%),
        #f8fafc;
}

.auth-box {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    padding: 42px;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 22px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 90px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.remember input {
    width: 15px;
    height: 15px;
}

.form-options a,
.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.form-options a:hover,
.auth-footer a:hover {
    text-decoration: underline;
}

.btn-primary {
    height: 52px;
    border: none;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 6px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 26px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

.field-error {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
}

.text-center {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.btn-link-primary {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.btn-link-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsivo */

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 420px;
        padding: 34px 24px;
        gap: 40px;
    }

    .auth-cards {
        grid-template-columns: 1fr;
    }

    .auth-right {
        padding: 28px 18px;
    }

    .auth-box {
        max-width: 100%;
        padding: 32px 24px;
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .auth-left {
        min-height: auto;
    }

    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .auth-hero h1 {
        font-size: 34px;
        letter-spacing: -1.2px;
    }

    .auth-hero p {
        font-size: 15px;
    }

    .auth-cards {
        display: none;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-box {
        box-shadow: none;
    }
}