/**
 * Auth Styles - Página única de autenticação (Login e Registro)
 * Layout de duas colunas - Design profissional
 */

/* Auth Body */
body.auth-body {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.auth-main {
    flex: 1;
    padding: 0;
    margin: 0;
}

/* Container Principal - Duas Colunas */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Coluna Esquerda: Promocional */
.auth-promo-column {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
                url('/assets/images/login.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.auth-promo-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.auth-promo-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
}

.auth-promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-promo-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.auth-promo-logo {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-promo-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-promo-checklist li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-promo-checklist li i {
    color: #68d391;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Coluna Direita: Formulário */
.auth-form-column {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 500px;
}

/* Logo do Formulário */
.auth-form-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-logo a {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-form-logo a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.auth-logo-img {
    height: 60px;
    max-width: 200px;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.auth-form-tagline {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #495057;
    background: #f8f9fa;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

/* Mensagem de Redirecionamento */
.auth-redirect-message {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #2c5282;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-redirect-message i {
    font-size: 1.1rem;
}

/* Conteúdo do Formulário */
.auth-form-content {
    animation: fadeIn 0.3s ease-in;
}

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

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.auth-form-welcome {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.auth-form .input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
}

.auth-form .input-group-text:first-child {
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.auth-form .input-group .form-control {
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.auth-form .input-group .form-control:focus {
    border-left: 1px solid #667eea;
}

.auth-form .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.auth-form .btn-outline-primary {
    border: 1px solid #667eea;
    color: #667eea;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-form .btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

/* Links */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border-left: 3px solid #fc8181;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-left: 3px solid #68d391;
}

.alert-info {
    background: #ebf8ff;
    color: #2c5282;
    border-left: 3px solid #63b3ed;
}

/* Verification Code Input */
.verification-code-input {
    font-size: 1.75rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: 700;
    color: #667eea;
    padding: 1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: #f8f9ff;
}

.verification-code-input:focus {
    border-color: #5a6fd8;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: white;
}

/* Responsividade */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-promo-column {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .auth-promo-title {
        font-size: 2rem;
    }
    
    .auth-promo-subtitle {
        font-size: 1rem;
    }
    
    .auth-form-column {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-promo-column {
        min-height: 35vh;
        padding: 1.5rem;
    }
    
    .auth-promo-title {
        font-size: 1.75rem;
    }
    
    .auth-promo-logo {
        font-size: 1.5rem;
    }
    
    .auth-form-column {
        padding: 1rem;
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
    
    .auth-logo-img {
        height: 50px;
        max-width: 150px;
    }
    
    .verification-code-input {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .auth-promo-column {
        min-height: 30vh;
        padding: 1rem;
    }
    
    .auth-promo-title {
        font-size: 1.5rem;
    }
    
    .auth-promo-subtitle {
        font-size: 0.9rem;
    }
    
    .auth-promo-checklist li {
        font-size: 0.9rem;
    }
    
    .auth-form-column {
        padding: 0.75rem;
    }
    
    .auth-form-title {
        font-size: 1.25rem;
    }
    
    .auth-tabs {
        gap: 0.25rem;
    }
    
    .auth-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
