/* ============================================
   LANDING.CSS - ESTILOS DA LANDING PAGE
   Versão 2.0 - REFATORADO
   ============================================ */

/* ===== VARIÁVEIS ===== */
:root {
    --landing-left-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --landing-right-bg: var(--bg-card, #ffffff);
    --landing-text: #ffffff;
    --landing-text-muted: rgba(255, 255, 255, 0.6);
    --landing-primary: #667eea;
    --landing-success: #4ade80;
}

[data-theme="dark"] {
    --landing-right-bg: #121212;
}

/* ===== CONTAINER PRINCIPAL ===== */
.landing-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-primary, #f0f2f5);
}

/* ===== LADO ESQUERDO (BANNER) ===== */
.landing-left {
    flex: 1;
    background: var(--landing-left-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Efeitos de fundo */
.landing-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 37.5rem;
    height: 37.5rem;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.08);
    pointer-events: none;
    animation: floatPulse 8s ease-in-out infinite;
}

.landing-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    background: rgba(118, 75, 162, 0.06);
    pointer-events: none;
    animation: floatPulse 10s ease-in-out infinite reverse;
}

@keyframes floatPulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(1.875rem, -1.25rem);
    }
}

/* ===== CONTEÚDO LADO ESQUERDO ===== */
.landing-content {
    max-width: 30rem;
    width: 100%;
    color: var(--landing-text);
    position: relative;
    z-index: 1;
}

/* Logo */
.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.landing-logo i {
    font-size: 2rem;
    color: var(--landing-primary);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0.3125rem rgba(102, 126, 234, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 1.25rem rgba(102, 126, 234, 0.6));
    }
}

.landing-logo span {
    color: var(--landing-text);
}

.landing-logo span span {
    color: var(--landing-primary);
}

/* Versículo */
.landing-verse {
    background: rgba(255, 255, 255, 0.08);
    border-left: 0.1875rem solid var(--landing-primary);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.75rem;
}

.landing-verse i {
    color: var(--landing-primary);
    margin-right: 0.625rem;
    font-size: 1.125rem;
}

.landing-verse span {
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.6;
    opacity: 0.9;
}

.landing-verse small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 0.25rem;
    margin-left: 1.75rem;
}

/* Títulos */
.landing-content h1 {
    font-size: 2.375rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.landing-content h1 span {
    color: var(--landing-primary);
}

.landing-content p {
    font-size: 1.0625rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Badges */
.landing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.landing-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.375rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
}

.landing-badges i {
    color: var(--landing-success);
}

/* Estatísticas */
.landing-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-stats div {
    font-size: 0.875rem;
    opacity: 0.6;
}

.landing-stats strong {
    font-size: 1.125rem;
    opacity: 1;
    display: block;
}

/* Rodapé */
.landing-footer {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    opacity: 0.3;
}

/* ===== LADO DIREITO (LOGIN/CADASTRO) ===== */
.landing-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    min-height: 100vh;
    background: var(--landing-right-bg);
}

.auth-container {
    width: 100%;
    max-width: 25rem;
}

.auth-box {
    width: 100%;
}

/* Cabeçalho do auth */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header .auth-icon {
    font-size: 2.5rem;
    color: var(--primary, #667eea);
    margin-bottom: 0.75rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text, #1f2937);
    margin-bottom: 0.25rem;
}

.auth-header p {
    color: var(--auth-subtext, #6b7280);
    font-size: 0.875rem;
}

/* ===== INPUTS ===== */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #6b7280);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 2.75rem;
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-sm, 0.75rem);
    font-size: 0.9375rem;
    transition: var(--transition, 0.3s ease);
    background: var(--bg-input, #ffffff);
    color: var(--text-primary, #1f2937);
    font-family: 'Inter', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary, #667eea);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted, #6b7280);
}

.input-group .toggle-pwd {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0.25rem;
    z-index: 2;
    transition: var(--transition, 0.3s ease);
}

.input-group .toggle-pwd:hover {
    color: var(--primary, #667eea);
}

/* ===== OPÇÕES DO FORMULÁRIO ===== */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    color: var(--text-secondary, #4b5563);
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary, #667eea);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===== TERMOS ===== */
.auth-terms {
    font-size: 0.8125rem;
    color: var(--text-muted, #6b7280);
    margin-bottom: 1rem;
}

.auth-terms label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-terms input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary, #667eea);
    margin-top: 0.125rem;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-terms a {
    color: var(--primary, #667eea);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* ===== DIVISOR ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--divider-color, #e5e7eb);
}

/* ===== RODAPÉ DO FORMULÁRIO ===== */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider-color, #e5e7eb);
}

.auth-footer p {
    color: var(--text-muted, #6b7280);
    font-size: 0.8125rem;
}

.auth-footer span {
    color: var(--primary, #667eea);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, 0.3s ease);
}

.auth-footer span:hover {
    text-decoration: underline;
}

/* ===== BOTÃO PRINCIPAL ===== */
.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: var(--gradient, linear-gradient(135deg, #667eea, #764ba2));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm, 0.75rem);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, 0.3s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.875rem rgba(102, 126, 234, 0.35);
}

/* ===== MENSAGENS ===== */
.error-message {
    padding: 0.75rem;
    background: #fee2e2;
    color: #dc2626;
    border-radius: var(--radius-sm, 0.75rem);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    display: none;
}

.success-message {
    padding: 0.75rem;
    background: #d1fae5;
    color: #059669;
    border-radius: var(--radius-sm, 0.75rem);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    display: none;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 64rem) {
    .landing-split {
        flex-direction: column;
    }

    .landing-left {
        min-height: auto;
        padding: 2.5rem 2rem;
    }

    .landing-content {
        max-width: 100%;
        text-align: center;
    }

    .landing-logo {
        justify-content: center;
    }

    .landing-badges {
        justify-content: center;
    }

    .landing-stats {
        justify-content: center;
    }

    .landing-verse small {
        margin-left: 0;
        text-align: center;
    }

    .landing-right {
        min-height: auto;
        padding: 2.5rem 2rem;
    }

    .landing-content h1 {
        font-size: 1.875rem;
    }
}

@media (max-width: 48rem) {
    .landing-left {
        padding: 1.5rem 1rem;
    }

    .landing-right {
        padding: 1.5rem 1rem;
    }

    .landing-content h1 {
        font-size: 1.75rem;
    }

    .landing-content p {
        font-size: 0.9375rem;
    }

    .landing-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .landing-badges {
        flex-direction: column;
        align-items: center;
    }

    .landing-badges span {
        width: 100%;
        justify-content: center;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-box {
        padding: 0 0.5rem;
    }

    .auth-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .input-group input {
        font-size: 1rem;
        padding: 1rem 2.75rem 1rem 2.75rem;
    }

    .btn-login {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 30rem) {
    .landing-left {
        padding: 1rem 0.75rem;
    }

    .landing-right {
        padding: 1rem 0.75rem;
    }

    .landing-content h1 {
        font-size: 1.5rem;
    }

    .landing-verse {
        padding: 0.75rem 0.875rem;
    }

    .landing-verse span {
        font-size: 0.8125rem;
    }

    .auth-header h2 {
        font-size: 1.375rem;
    }

    .auth-header .auth-icon {
        font-size: 2rem;
    }

    .landing-logo {
        font-size: 1.375rem;
    }

    .landing-logo i {
        font-size: 1.625rem;
    }

    .landing-stats strong {
        font-size: 1rem;
    }

    .landing-stats div {
        font-size: 0.75rem;
    }
}