/* ===== SIGNUP SPECIFIC STYLES ===== */
/* Este archivo contiene SOLO los estilos específicos para signup.php */

/* ===== ESTILOS GENERALES ===== */
html, body { 
    background: linear-gradient(135deg, #0a1929 0%, #1a2f42 100%) !important;
    font-family: sans-serif; 
    color: #fff; 
    margin: 0; 
    padding: 0;
    min-height: 100vh;
}

/* Forzar fondo azul marino */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1929 0%, #1a2f42 100%);
    z-index: -1;
}

/* ===== CONTAINER CON MÁS ESPACIO SUPERIOR ===== */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 80px 0 40px 0;
}

/* ===== LOGO CONTAINER ===== */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo {
    max-width: 200px;
    height: auto;
}

/* ===== TÍTULO PRINCIPAL ===== */
h1 {
    font-size: 2.5rem !important;
    font-weight: 600;
    text-align: center !important;
    margin-bottom: 40px;
    color: #ffffff;
}

/* ===== RADIO GROUP ===== */
.radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 40px 0;
    font-size: 1.5rem;
}

.radio-group label {
    margin: 0 10px;
    cursor: pointer;
    color: #4dabf7 !important;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

.radio-group span {
    margin: 0 15px;
    color: #4dabf7 !important;
}

/* ===== FORM WRAPPER - CENTRADO ===== */
#signup-form,
#signin-form {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

/* ===== FORM GROUPS - ALINEADOS A LA IZQUIERDA ===== */
.form-group {
    margin: 25px auto;
    display: inline-block;
    text-align: left;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #ffffff !important;
    font-weight: 500;
    text-align: left;
}

/* ===== ESTILO UNIFICADO PARA TODOS LOS CAMPOS ===== */
#signup-form .form-group input,
#signup-form .form-group select,
#signin-form .form-group input,
#signin-form .form-group select {
    padding: 12px 15px;
    color: #ffffff !important;
    background-color: #0c243c !important;
    border: 2px solid #4dabf7;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

/* PLACEHOLDERS EN BLANCO BRILLANTE */
input::placeholder {
    color: #ffffff !important;
    opacity: 0.8;
}

select::placeholder {
    color: #ffffff !important;
    opacity: 0.8;
}

/* Asegurar que el autofill no cambie el color de fondo */
#signup-form .form-group input:-webkit-autofill,
#signup-form .form-group select:-webkit-autofill,
#signin-form .form-group input:-webkit-autofill,
#signin-form .form-group select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0c243c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

#signup-form .form-group input:focus,
#signup-form .form-group select:focus,
#signin-form .form-group input:focus,
#signin-form .form-group select:focus {
    border-color: #74c0fc;
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

#signup-form .form-group input[readonly],
#signin-form .form-group input[readonly] {
    border-color: #666;
    opacity: 0.8;
}

/* ===== CAMPOS CON ANCHO AJUSTADO ===== */
#signup-form #nombre,
#signin-form #nombre {
    width: 28ch !important;
}

#signup-form #surname,
#signin-form #surname {
    width: 43ch !important;
}

#signup-form #email,
#signin-form #email,
#signin-form #signin-email {
    width: 43ch !important;
}

#signup-form #password,
#signup-form #confirm-password,
#signin-form #signin-password {
    width: 100% !important;
    max-width: 350px !important;
}

/* ===== PHONE ROW - CAMPOS EN LA MISMA LÍNEA ===== */
.phone-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phone-row label {
    margin-bottom: 8px;
    color: #ffffff !important;
}

.phone-inputs {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.phone-input-group {
    display: flex;
    flex-direction: column;
}

.phone-input-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ffffff !important;
}

#signup-form #phone-code,
#signin-form #phone-code {
    width: 9ch !important;
}

#signup-form #phone-number,
#signin-form #phone-number {
    width: 15ch !important;
}

/* ===== CURRENCY STYLES ===== */
.form-group:has(#currency-select) {
    display: block;
}

#signup-form #currency-select,
#signin-form #currency-select {
    width: 30ch !important;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

#currency-select option {
    color: #ffffff !important;
    background-color: #0c243c !important;
}

/* ===== PASSWORD FIELDS ===== */
.form-group:has(#password) label:first-child {
    display: block;
    margin-bottom: 8px;
    color: #ffffff !important;
}

.show-password-btn {
    background-color: #4dabf7;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.show-password-btn:hover {
    background-color: #339af0;
}

/* ===== CONFIRM PASSWORD FIELD ===== */
.form-group:has(#confirm_password) {
    margin-top: 15px;
}

.form-group:has(#confirm_password) label {
    color: #ffffff !important;
}

/* ===== PASSWORD FIELDS CONTAINER (EN LÍNEA) ===== */
.password-fields-container {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    width: 100%;
}

.password-fields-container input {
    width: 18ch !important;
}

.password-fields-container .show-password-btn {
    margin-top: 0;
    white-space: nowrap;
}

/* ===== ERROR MESSAGES - CORREGIDO ===== */
.error-message {
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 107, 107, 0.15);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    max-width: 550px;
    display: none; /* Sin !important para que JS pueda cambiarlo */
}

.error-message p {
    margin: 5px 0;
    color: #ff6b6b;
}

/* ===== SUCCESS MESSAGES - CORREGIDO ===== */
.success-message {
    color: #51cf66;
    font-weight: bold;
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(81, 207, 102, 0.15);
    border: 2px solid #51cf66;
    border-radius: 8px;
    max-width: 550px;
    display: none; /* Sin !important para que JS pueda cambiarlo */
}

.success-message p {
    margin: 5px 0;
    color: #51cf66;
}

/* ===== BUTTONS ===== */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px 0;
}

.button {
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.button-accept {
    background-color: #4CAF50;
    color: white;
}

.button-accept:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.button-accept:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.button-cancel {
    background-color: #f44336;
    color: white;
}

.button-cancel:hover {
    background-color: #da190b;
    transform: translateY(-2px);
}

/* ===== RETURN BUTTON ===== */
.return-btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 20px;
}

.return-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
}

/* ===== GEOLOCATION INFO ===== */
#geolocation-info {
    display: none;
    text-align: center;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #ffffff !important;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector label {
    font-size: 0.9rem;
    color: #ffffff;
    margin-right: 10px;
    font-weight: 500;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #4dabf7;
    background-color: #0c243c;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #74c0fc;
}

.language-selector select:focus {
    box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.3);
}

.language-selector select option {
    background-color: #0c243c;
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-group {
        margin: 20px auto;
    }
    
    #password,
    #confirm_password {
        width: 100% !important;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .button {
        width: 100%;
    }
    
    #phone-code,
    #phone-number,
    #currency-select {
        width: 100% !important;
        margin: 5px 0;
        display: block;
    }
    
    .phone-inputs {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: stretch;
    }
    
    .password-fields-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .password-fields-container input {
        width: 100% !important;
    }
    
    .main-logo {
        max-width: 150px;
    }
    
    .container {
        padding: 100px 20px 40px 20px;
    }
}

@media (max-width: 480px) {
    .radio-group {
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        color: #ffffff !important;
    }
    
    .form-group input,
    .form-group select {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
}
/* ===== TÉRMINOS Y CONDICIONES - ROJO CASI BLANCO ===== */
.terms-link {
    color: #FFCCCC !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.terms-link:hover {
    color: #FFFFFF !important;
}

/* ===== TERMS CHECKBOX ===== */
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px auto;
    font-size: 0.85rem;
    justify-content: center;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-checkbox label {
    color: #ccc;
    cursor: pointer;
}

/* ===== PASSWORDS MÁS JUNTOS ===== */
.form-group.password-group {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* ===== BOTÓN SHOW PASSWORD PEQUEÑO Y A LA DERECHA ===== */
.password-with-button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.password-with-button input {
    flex: 1 !important;
}

.password-with-button .show-password-btn {
    font-size: 0.55rem !important;
    padding: 3px 6px !important;
    margin-top: 0 !important;
    min-width: auto !important;
    max-width: 45px !important;
    height: 22px !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
}

/* ===== PRIVACY NOTICE ===== */
.privacy-notice {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 20px auto;
    text-align: center;
    max-width: 550px;
}
