/* ============================================
   ÁREA DE MEMBROS - AUTENTICAÇÃO
   Estilos para login/recuperação de senha
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Principal */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px;
}

/* Lado Esquerdo - Branding */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, #b21f2a 0%, #8b1820 100%);
    color: #FFFFFF;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.auth-branding h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.auth-branding p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Features */
.auth-features {
    display: grid;
    gap: 20px;
    margin-top: 50px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.auth-feature i {
    font-size: 24px;
    opacity: 0.9;
}

.auth-feature span {
    font-size: 14px;
    font-weight: 500;
}

/* Lado Direito - Form */
.auth-form-side {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.auth-form-header {
    margin-bottom: 40px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.auth-form-header p {
    font-size: 14px;
    color: #718096;
    line-height: 1.6;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 24px;
}

.auth-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.auth-form-label i {
    font-size: 16px;
    color: #b21f2a;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d3748;
    background: #FFFFFF;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.auth-form-input:focus {
    border-color: #b21f2a;
    box-shadow: 0 0 0 3px rgba(178, 31, 42, 0.1);
}

.auth-form-input::placeholder {
    color: #a0aec0;
}

/* Password Toggle */
.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    transition: all 0.3s ease;
}

.auth-password-toggle:hover {
    color: #b21f2a;
}

/* Form Options */
.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #b21f2a;
}

.auth-link {
    font-size: 14px;
    color: #b21f2a;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #8b1820;
    text-decoration: underline;
}

/* Submit Button */
.auth-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #b21f2a 0%, #8b1820 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(178, 31, 42, 0.3);
}

.auth-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(178, 31, 42, 0.4);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-submit i {
    font-size: 20px;
    transition: all 0.3s ease;
}

.auth-btn-submit:hover i {
    transform: translateX(4px);
}

/* Loading State */
.auth-btn-submit.loading {
    position: relative;
    color: transparent;
}

.auth-btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Footer */
.auth-form-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.auth-form-footer p {
    font-size: 14px;
    color: #718096;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
    }
    
    .auth-branding {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .auth-logo {
        max-width: 150px;
    }
    
    .auth-branding h1 {
        font-size: 24px;
    }
    
    .auth-branding p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .auth-features {
        display: none;
    }
    
    .auth-form-side {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .auth-branding {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .auth-logo {
        max-width: 120px;
    }
    
    .auth-branding h1 {
        font-size: 20px;
    }
    
    .auth-form-side {
        padding: 30px 20px;
    }
    
    .auth-form-header h2 {
        font-size: 24px;
    }
    
    .auth-form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Validation Errors */
.auth-form-input.error {
    border-color: #e53e3e;
}

.auth-form-error {
    display: block;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 6px;
}
