/* ============================================
   AUTH.CSS - Estilos para páginas de autenticação
   DC Multimarcas
   ============================================ */

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

/* Body e Container Principal */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.auth-container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-right,
.auth-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Logo e Título */
.logo-text {
    text-align: center;
    margin-bottom: 40px;
}

.logo-text h1 {
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text p {
    color: #666;
    font-size: 14px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 14px;
}

/* Formulários */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.toggle-password i {
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
    left: auto;
    top: auto;
}

.toggle-password:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.toggle-password:active {
    background: #ebebeb;
}

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

/* Form Controls */
.form-control {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

/* Padding extra para campos com botão de toggle */
#senha,
.password-field {
    padding-right: 60px;
}

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

/* Botões Principais */
.btn-login,
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-login:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-login i,
.btn-primary i {
    margin-right: 8px;
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Register Box */
.register-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.register-box p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.btn-register,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-register:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.5);
}

.btn-register i,
.btn-secondary i {
    margin-right: 8px;
}

/* Benefits Text */
.benefits-text {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.benefits-text i {
    font-size: 16px;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    border: none;
}

.alert-danger {
    background: #fee;
    color: #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
}

.alert-warning {
    background: #ffe;
    color: #cc3;
}

.alert-info {
    background: #eff;
    color: #3cc;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Back Home */
.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-home a:hover {
    color: #667eea;
}

.back-home i {
    margin-right: 5px;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container,
.auth-container {
    animation: fadeInUp 0.6s ease;
}

/* Loading State */
.btn-login:disabled,
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .login-right,
    .auth-content {
        padding: 40px 30px;
    }

    .logo-text h1 {
        font-size: 24px;
    }

    .section-title h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-right,
    .auth-content {
        padding: 30px 20px;
    }

    .register-box {
        padding: 20px;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA CADASTRO
   ============================================ */

/* Card de Cadastro */
.card-cadastro {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-header-custom h4 {
    margin: 0;
    font-weight: 600;
}

.card-header-custom p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.card-body {
    padding: 2rem;
}

/* Form Labels */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-label .required {
    color: #ef4444;
}

/* Form Controls e Selects */
.form-control, 
.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
    width: 100%;
    font-size: 15px;
}

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

/* Input Groups */
.input-group {
    display: flex;
    position: relative;
}

.input-group-text {
    background-color: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

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

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

/* Botão Secondary (para toggle de senha no cadastro) */
.btn-outline-secondary {
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #6b7280;
    transition: all 0.3s;
    background: white;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
}

.input-group .form-control:focus ~ .btn-outline-secondary {
    border-color: #667eea;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    cursor: pointer;
    margin: 0;
}

/* Alert Info */
.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
}

/* Badge de Indicação */
.indicacao-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Senha Forte */
.senha-forte {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Text Muted Override */
.text-muted {
    color: #6b7280 !important;
}

/* Small text */
small.text-muted {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}
