/* ========================================
   AUTH STYLES — LOGIN / CADASTRO
   Tema: Dark · Gold · Clean
   ======================================== */

:root {
    --gold: #C6A972;
    --gold-dark: #a8884e;
    --black: #0a0a0a;
    --black-soft: #111111;
    --black-card: #161616;
    --white: #ffffff;
    --white-dim: rgba(255,255,255,0.6);
    --white-faint: rgba(255,255,255,0.08);
    --border: rgba(198, 169, 114, 0.18);
    --border-subtle: rgba(255,255,255,0.08);
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
}

/* ========================================
   HEADER SIMPLIFICADO
   ======================================== */
.header-simple {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10,10,10,0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border) !important;
    z-index: 1000;
    box-shadow: none !important;
}

.header-simple .navbar {
    padding: 1.25rem 0;
}

.header-simple .logo-text {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.header-simple .logo-img {
    display: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    color: var(--white-dim);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--white);
    border-color: var(--gold);
    background: var(--white-faint);
}

/* ========================================
   SEÇÃO AUTH
   ======================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 1.5rem 3rem;
    background: var(--black);
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    border: 1px solid var(--border);
    background: var(--black-card);
}

/* ========================================
   LADO ESQUERDO — VISUAL
   ======================================== */
.auth-left {
    background: var(--black-soft);
    border-right: 1px solid var(--border);
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Linha dourada decorativa de fundo */
.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 340px;
}

.auth-left h2 {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.auth-left p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--white-dim);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.feature-item i {
    color: var(--gold);
    font-size: 0.85rem;
    width: 16px;
    flex-shrink: 0;
    opacity: 0.9;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--white-dim);
    font-weight: 300;
}

/* ========================================
   LADO DIREITO — FORMULÁRIO
   ======================================== */
.auth-right {
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 360px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.auth-subtitle {
    font-size: 0.82rem;
    color: var(--white-dim);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}

/* Mensagens */
.auth-message {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: none;
    border-left: 2px solid;
    background: var(--white-faint);
}

.auth-message.show { display: block; }

.auth-message.error {
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

.auth-message.success {
    color: var(--gold);
    border-left-color: var(--gold);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Labels */
.form-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    margin-bottom: 0.55rem;
}

.form-group label i {
    display: none;
}

/* Inputs — estilo linha */
.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.13);
    padding: 0.7rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--white);
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.18);
}

.form-group input:focus {
    border-bottom-color: var(--gold);
    box-shadow: none;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

/* Password toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0.4rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--gold);
}

/* Opções */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--white-dim);
    font-weight: 300;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--gold);
    cursor: pointer;
    border: none;
}

.forgot-password {
    font-size: 0.78rem;
    color: var(--gold);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    letter-spacing: 0.04em;
}

.forgot-password:hover {
    opacity: 1;
}

/* Botão submit */
.btn-auth {
    padding: 0.9rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    text-decoration: none;
}

.btn-auth i { display: none; }

.btn-auth:hover {
    background: #d4b87a;
    transform: translateY(-1px);
}

/* Divisor */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.auth-divider span {
    position: relative;
    background: var(--black-card);
    padding: 0 1rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white-dim);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-social:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
    background: var(--white-faint);
}

.btn-social i { font-size: 0.9rem; }

.btn-google i { color: #ea4335; }
.btn-facebook i { color: #4267b2; }

/* Switch */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
}

.auth-switch a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.auth-switch a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================
   MODAL RECUPERAÇÃO DE SENHA
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: var(--black-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1rem;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.25rem;
}

.modal-close:hover { color: var(--white); }

.modal-content h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.modal-content p {
    font-size: 0.85rem;
    color: var(--white-dim);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.7;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2.5rem;
        min-height: auto;
    }

    .auth-left-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 2.5rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 90px 1rem 2rem;
    }

    .auth-right {
        padding: 2rem 1.5rem;
    }

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