/* ============================================
   ESTILOS PARA PÁGINA DE AUTENTICAÇÃO
   ============================================ */

/* Variables */
:root {
    --color-primary: #507993;
    --color-primary-dark: #2e4a5e;
    --color-accent: #a4c4d4;
    --color-background: #f7f9fb;
    --color-foreground: #1a2332;
    --color-text-primary: #1a2332;
    --color-text-secondary: #334455;
    --shadow-elegant: 0 8px 30px -10px rgba(80, 121, 147, 0.15);
    --shadow-hover: 0 12px 40px -10px rgba(80, 121, 147, 0.25);
}

/* Reset Auth Page */
.auth-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f7f9fb 0%, #e8f0f5 100%);
    min-height: 100vh;
}

/* Main Content */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-elegant);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    border-radius: 20px 20px 0 0;
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f7f9fb;
    border-radius: 15px;
    padding: 5px;
    gap: 5px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--color-primary);
    background: rgba(80, 121, 147, 0.05);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(80, 121, 147, 0.3);
}

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

/* Form Containers */
.auth-form-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form-container.active {
    display: block;
}

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

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    color: var(--color-text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--color-text-secondary);
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: #f7f9fb;
    border: 2px solid #e8f0f5;
    border-radius: 12px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(80, 121, 147, 0.1);
}

.auth-form input:focus + .input-icon,
.auth-form input:focus ~ .input-icon {
    color: var(--color-primary);
}

.auth-form input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: color 0.3s ease;
    z-index: 2;
}

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

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-group label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: var(--shadow-elegant);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.auth-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

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

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Messages */
.auth-messages {
    margin-top: 20px;
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.message.info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #1565c0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8f0f5;
}

.auth-footer p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="tel"] {
        padding: 10px 10px 10px 40px;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 12px;
        font-size: 0.9rem;
    }
    
    .password-toggle {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 20px 10px;
    }
    
    .auth-container {
        margin: 10px;
        padding: 25px 15px;
    }
    
    .auth-header h1 {
        font-size: 1.4rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 10px;
    }
}

