/* static/css/auth.css */

:root {
    --auth-bg-dark: #020617;
    --auth-bg-mid: #0b1120;
    --auth-card-bg: #020617;
    --auth-border-subtle: #111827;
    --auth-text-main: #e5e7eb;
    --auth-text-muted: #9ca3af;
    --auth-accent: #4f46e5;
    --auth-accent-hover: #6366f1;
    --auth-danger: #f97373;
    --auth-shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.75);
}

/* Reset básico */
.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, var(--auth-bg-mid), var(--auth-bg-dark));
    color: var(--auth-text-main);
}

/* Wrapper principal */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Colunas */
.auth-side {
    position: relative;
}

.auth-side--left {
    flex: 1.3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-side-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.6));
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    padding: 3rem;
    margin-top: auto;
    margin-bottom: auto;
}

.auth-left-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-left-content p {
    font-size: 0.95rem;
    color: var(--auth-text-muted);
}

/* Lado direito / card */
.auth-side--right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top, #020617, #020617);
    border-radius: 1.25rem;
    border: 1px solid var(--auth-border-subtle);
    box-shadow: var(--auth-shadow-soft);
    padding: 2.25rem 2rem;
}

.auth-title {
    font-size: 1.6rem;
    margin: 0 0 0.35rem 0;
}

.auth-subtitle {
    margin: 0 0 1.75rem 0;
    font-size: 0.9rem;
    color: var(--auth-text-muted);
}

/* Formulário */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

.form-group input {
    background-color: #020617;
    border-radius: 0.625rem;
    border: 1px solid #1f2937;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    color: var(--auth-text-main);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-group input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
    background-color: #020617;
}

.field-error span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--auth-danger);
}

.auth-errors {
    background-color: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.form-remember {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease, opacity 0.12s ease;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

/* Botão principal "Entrar" */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-hover));
    color: white;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
    margin-top: 0.3rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-accent-hover), var(--auth-accent));
    box-shadow: 0 16px 45px rgba(79, 70, 229, 0.65);
}

/* Google */
.btn-google {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid #1f2937;
    color: var(--auth-text-main);
    margin-top: 0.25rem;
}

.btn-google:hover {
    background-color: #111827;
    border-color: #374151;
}

/* Riot placeholder */
.btn-riot {
    width: 100%;
    background-color: #020617;
    border: 1px dashed #4b5563;
    color: #6b7280;
    margin-top: 0.4rem;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-riot img {
    height: 1rem;
    width: auto;
}

.google-icon,
.riot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-icon {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    background-color: white;
    color: #4285f4;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Links e divisores */
.auth-links-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.auth-link {
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.6rem 0;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: radial-gradient(circle, #111827, #020617);
}

/* Rodapé */
.auth-footer-text {
    margin-top: 1.4rem;
    font-size: 0.8rem;
    color: var(--auth-text-muted);
    text-align: center;
}

/* Responsividade */
@media (max-width: 1024px) {
    .auth-left-content {
        padding: 2.4rem;
    }

    .auth-card {
        max-width: 380px;
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 860px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-side--left {
        order: 2;
        min-height: 220px;
    }

    .auth-side--right {
        order: 1;
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .auth-card {
        margin: 1rem auto;
        max-width: 420px;
    }

    .auth-left-content {
        max-width: 100%;
        padding: 1.8rem 1.4rem 2.2rem;
    }

    .auth-left-content h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.6rem 1.2rem 1.8rem;
        border-radius: 1rem;
    }

    .auth-title {
        font-size: 1.4rem;
    }

    .auth-subtitle {
        font-size: 0.83rem;
    }
}
