﻿body {
    background-color: #062B55;
    background-image: url("../images/fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.login-container {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-in-out;
}

.login-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #1E3A8A;
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.5;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Estilo global RadTextBox ==== */
.RadInput {
    width: 100% !important;
    margin-bottom: 18px !important; /* Separación vertical un poco más amplia para dedos */
}

    /* Input interno moderno */
    .RadInput .riTextBox {
        width: 100% !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important; /* Bordes un poco más suaves */
        padding: 12px 14px !important; /* Padding más alto para facilitar la escritura en touch */
        font-size: 16px !important; /* NOTA DE ORO: En iOS, un tamaño menor a 16px fuerza un auto-zoom molesto */
        color: #111827 !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
        outline: none !important;
        transition: all 0.2s ease-in-out;
        box-sizing: border-box !important;
    }

        .RadInput .riTextBox::placeholder {
            color: #9ca3af !important;
        }

        .RadInput .riTextBox:focus {
            border-color: #3B82F6 !important;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
        }

        .RadInput .riTextBox.riError {
            border-color: #DC2626 !important;
            background-color: #FEF2F2 !important;
        }

/* ==== 👑 ESTILIZACIÓN PREMIUM PARA EL RADBUTTON EN MÓVILES ==== */
.btn-login-premium,
.btn-login-premium * {
    box-sizing: border-box !important;
}

    .btn-login-premium .rbDecorated {
        padding: 12px 0 !important; /* Aumenta el alto total del botón para dar un clic cómodo */
        font-size: 16px !important;
        font-weight: 600 !important;
        background-color: #1E3A8A !important; /* Azul corporativo */
        background-image: none !important;
        color: #ffffff !important;
        border: 1px solid #1E3A8A !important;
        border-radius: 8px !important;
        transition: background-color 0.2s ease, border-color 0.2s ease;
        height: auto !important;
    }

    .btn-login-premium:hover .rbDecorated {
        background-color: #1d4ed8 !important;
        border-color: #1d4ed8 !important;
    }

/* ==== RESPONSIVIDAD PARA CELULARES EXTREMADAMENTE PEQUEÑOS ==== */
@media (max-width: 400px) {
    body {
        padding: 15px; /* Evita que la tarjeta toque los bordes físicos del teléfono */
    }

    .login-container {
        padding: 30px 20px;
    }
}
