:root {
    --primary-color: #ec0000; /* Rojo profesional inspirado en las imágenes */
    --text-color: #333;
    --bg-gray: #f4f4f4;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.main-logo { max-width: 180px; margin-bottom: 20px; }

.input-group { text-align: left; margin-bottom: 20px; }

input {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 2px solid #ccc;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus { border-bottom-color: var(--primary-color); outline: none; }

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* Spinner animado */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }.instruction-text {
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}

.helper-image img {
    max-width: 50%;
    height: auto;
    margin: 15px 0;
}

.error-box {
    background-color: #fff5f5;
    color: #ec0000;
    border: 1px solid #ec0000;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

/* Ajuste para que el input de OTP se vea profesional */
#otpCode {
    letter-spacing: 2px;
    font-weight: bold;
    text-align: center;
}