/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body.auth-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #5f5fff 0, #2d1e80 40%, #05071a 100%);
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

.auth-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(148, 163, 184, 0.15);
}

.auth-left {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
}

.auth-left-inner {
    max-width: 360px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 20px;
    text-align: center;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #020617;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.auth-subtitle {
    font-size: 13px;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: #0f172a08;
    border: 1px solid #e2e8f0;
    padding: 0 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.auth-input-wrapper:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4), 0 10px 30px rgba(15, 23, 42, 0.16);
    background-color: #ffffff;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.auth-icon svg {
    width: 18px;
    height: 18px;
}

.auth-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    padding: 12px 10px;
    font-size: 14px;
    color: #0f172a;
}

.auth-input-wrapper input::placeholder {
    color: #cbd5f5;
}

.auth-toggle-password {
    border: none;
    background: none;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex;
}

.auth-toggle-password:hover {
    color: #64748b;
}

.auth-toggle-password svg {
    width: 18px;
    height: 18px;
}

.auth-actions {
    margin-top: 8px;
}

.auth-btn-primary {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #f9fafb;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.55);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.65);
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    max-width: 240px;
    margin-inline: auto;
}

.auth-link {
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    background: #0f172a08;
    color: #4f46e5;
    box-shadow: 0 0 0 1px #e2e8f0;
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}

.auth-link-btn--ghost {
    background: #ffffff;
    color: #0f172a;
}

.auth-link-btn:hover {
    background: #eef2ff;
    box-shadow: 0 0 0 1px #c7d2fe;
    transform: translateY(-0.5px);
}

.auth-disclaimer {
    margin-top: auto;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.auth-error {
    margin-bottom: 14px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    border: 1px solid #fecaca;
}

.auth-logo-image {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.auth-right {
    position: relative;
    padding: 40px 40px 32px;
    background: radial-gradient(circle at 10% 20%, #8b5cf6 0, #4f46e5 35%, #0f172a 100%);
    color: #e2e8f0;
    overflow: hidden;
}

.auth-right::before,
.auth-right::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.8;
}

.auth-right::before {
    width: 220px;
    height: 220px;
    background: #22d3ee;
    top: -60px;
    right: -80px;
}

.auth-right::after {
    width: 260px;
    height: 260px;
    background: #f97316;
    bottom: -80px;
    left: -80px;
}

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    z-index: 1;
}

.auth-logo-circle {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #facc15 0, #f97316 45%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.65);
}

.auth-logo-star {
    font-size: 26px;
    color: #fefce8;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 12px;
    text-transform: uppercase;
}

.auth-brand-name {
    color: #e5e7eb;
}

.auth-brand-name--accent {
    background: linear-gradient(90deg, #22c55e, #2dd4bf, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

.auth-highlight-card {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 18px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.3));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.auth-highlight-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f9fafb;
}

.auth-highlight-card p {
    font-size: 13px;
    color: #cbd5f5;
    margin-bottom: 10px;
}

.auth-highlight-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.auth-highlight-card li::before {
    content: "•";
    color: #22c55e;
    margin-right: 4px;
}

.auth-logo-only {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-image--large {
    width: 220px;
    max-width: 70%;
}

@media (max-width: 920px) {
    .auth-card {
        max-width: 720px;
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-right {
        display: none;
    }
}

@media (max-width: 640px) {
    .auth-root {
        padding: 16px;
    }

    .auth-card {
        border-radius: 18px;
    }

    .auth-left {
        padding: 28px 22px 22px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
    }
}

