/**
 * Estilos para los formularios de Login y Registro personalizados
 */

/* Estilos del formulario */
.register-form-wrapper,
.login-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.register-form-wrapper h2,
.login-form-wrapper h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Botones */
#register-submit-btn,
#login-submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
}

#register-submit-btn:disabled,
#login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensajes */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Botones del header */
.nav-menu-account {
    margin-left: 10px;
}

.nav-menu-account .button {
    padding: 8px 20px;
    font-size: 14px;
}

/* Modal de Registro */
#registerModal .modal-dialog {
    max-width: 800px;
}

#registerModal .modal-body {
    padding: 30px;
}

#registerModal .form-group {
    margin-bottom: 20px;
}

#registerModal .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

#registerModal .captcha-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#registerModal .captcha-question {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

#registerModal .modal-header {
    background: #389d29;
    color: #fff;
    border-bottom: none;
}

#registerModal .modal-header .close {
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

#registerModal .modal-header .close:hover {
    opacity: 0.8;
}

#registerModal .modal-title {
    font-weight: 600;
}

/* Wizard Stepper */
.coinflip-stepper {
    position: relative;
}
.coinflip-stepper .stepper-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.coinflip-stepper .stepper-header .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #333;
    border: 2px solid #f1c40f; /* Amarillo tema */
    font-weight: 700;
    z-index: 1;
}
.coinflip-stepper .stepper-header .step.active,
.coinflip-stepper .stepper-header .step.completed {
    background: #f1c40f;
    color: #1b1b1b;
}
.coinflip-stepper .stepper-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    background: #eee;
    transform: translateY(-50%);
}
.coinflip-stepper .stepper-progress .bar {
    display: block;
    height: 100%;
    width: 0;
    background: #f1c40f;
    transition: width .35s ease;
}
.step-title {
    margin: 10px 0 15px;
    font-weight: 700;
    color: #333;
}

/* Step containers + animations */
.step-content { display: none; }
.step-content.active { display: block; }
.animate-in {
    animation: fadeSlideIn .35s ease;
}
.animate-out {
    animation: fadeSlideOut .25s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* Wizard footer buttons */
.wizard-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.wizard-footer .button.general-btn.btn-next,
.wizard-footer .button.general-btn.btn-submit,
.wizard-footer .button.general-btn.btn-prev {
    min-width: 130px;
}
.wizard-footer .btn-prev[disabled] { opacity: .5; cursor: not-allowed; }

/* Amarillos/hover según tema */
.wizard-footer .button.general-btn.btn-next,
.wizard-footer .button.general-btn.btn-submit,
.coinflip-stepper .stepper-header .step.active {
    background: #f1c40f;
    color: #1b1b1b;
}
.wizard-footer .button.general-btn.btn-next:hover,
.wizard-footer .button.general-btn.btn-submit:hover {
    background: #f39c12;
}

/* Responsive */
@media (max-width: 768px) {
    .register-form-wrapper,
    .login-form-wrapper {
        padding: 30px 20px;
    }
    
    .container {
        padding: 10px !important;
    }
    
    #registerModal .modal-dialog {
        margin: 10px;
    }
    
    #registerModal .modal-body {
        padding: 20px;
    }
    
    #registerModal .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    #registerModal .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
}

