/* ===== SIGNUP ARABIC SPECIFIC STYLES ===== */
/* Este archivo contiene los estilos específicos para signup.php en árabe */

/* ===== 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;
    direction: rtl; /* Dirección RTL para árabe */
    font-size: 130%; /* Aumentar tamaño de fuente en 30% */
}

/* 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-left: 5px; /* Cambiado de margin-right a margin-left */
    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 DERECHA ===== */
.form-group {
    margin: 25px auto;
    display: inline-block;
    text-align: right; /* Cambiado de left a right */
    width: 100%;
}

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

/* ===== 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;
    text-align: right; /* Alineación del texto a la derecha */
}

/* PLACEHOLDERS EN BLANCO BRILLANTE */
input::placeholder {
    color: #ffffff !important;
    opacity: 0.8;
    text-align: right; /* Placeholder alineado a la derecha */
}

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: 18ch !important;
}

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

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

.phone-inputs {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-direction: row-reverse; /* Invertir el orden de los campos */
}

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

.phone-input-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ffffff !important;
    text-align: right; /* Alineación a la derecha */
}

#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: left 10px center; /* Cambiado de right a left */
    background-size: 20px;
    padding-left: 40px; /* Cambiado de padding-right a padding-left */
    padding-right: 15px; /* Añadido padding-right */
    text-align: right; /* Alineación del texto a la derecha */
}

#currency-select option {
    color: #ffffff !important;
    background-color: #0c243c !important;
    text-align: right; /* Opciones alineadas a la derecha */
}

/* ===== PASSWORD FIELDS - BOTÓN PEQUEÑO DESPUÉS DEL CONFIRM ===== */
.password-with-button {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Asegura que los inputs ocupen todo el ancho */
.password-with-button input[type="password"],
.password-with-button input[type="text"] {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Botón pequeño, solo el tamaño del contenido, alineado a la derecha */
.show-password-btn {
    width: auto !important;
    padding: 4px 12px !important;
    background: #4dabf7 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    height: auto !important;
    margin: 0 !important;
    align-self: flex-end !important;
    white-space: nowrap !important;
}

.show-password-btn:hover {
    background: #74c0fc !important;
}

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

/* ===== ERROR MESSAGES ===== */
.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;
}

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

/* ===== SUCCESS MESSAGES ===== */
.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;
}

.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-cancel {
    background-color: #f44336;
    color: white;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .form-group {
        margin: 20px auto;
    }
    
    .buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .button {
        width: 100%;
    }
    
    .phone-inputs {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .container {
        padding: 100px 20px 40px 20px;
    }
}