* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

.login-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: url('/backgroun_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: blur(0px);
}

/* Efecto blur en el fondo */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/backgroun_image.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -1;
}

.login-card {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Form Section */
.form-section {
    width: 100%;
}

.form-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 1.2rem;
    z-index: 2;
}

.input-wrapper .dropdown-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.input-wrapper:has(.input-icon) .form-input {
    padding-left: 45px;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    padding: 10px;
}

/* Button */
.btn-verify {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-top: 1rem;
}

.btn-verify:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.btn-verify:active {
    transform: translateY(0);
}

/* Forgot Link */
.forgot-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #28a745;
}

.forgot-link i {
    margin-right: 5px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: #999;
    font-size: 0.85rem;
    z-index: 2;
}

.footer-left span {
    color: #999;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.refresh-icon {
    width: 35px;
    height: 35px;
    background: #17a2b8;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-icon:hover {
    background: #138496;
}

.footer-right a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #555;
}

.footer-right span {
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        width: 95%;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .logo {
        max-width: 150px;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .welcome-section p {
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 10px 40px 10px 12px;
        font-size: 0.95rem;
    }

    .input-wrapper:has(.input-icon) .form-input {
        padding-left: 40px;
    }

    .btn-verify {
        padding: 12px;
        font-size: 1rem;
    }

    .footer {
        padding: 0 20px;
        font-size: 0.8rem;
    }

    .footer-right {
        gap: 8px;
    }

    .refresh-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .logo {
        max-width: 120px;
    }

    .welcome-section h1 {
        font-size: 1.3rem;
    }

    .welcome-section p {
        font-size: 0.85rem;
    }

    .forgot-link {
        font-size: 0.85rem;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        bottom: 15px;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }
}

@media (max-width: 320px) {
    .login-card {
        padding: 1rem 0.8rem;
    }

    .logo {
        max-width: 100px;
    }

    .welcome-section h1 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .welcome-section p {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 8px 35px 8px 10px;
        font-size: 0.9rem;
    }

    .input-wrapper .input-icon {
        font-size: 1rem;
        left: 10px;
    }

    .btn-verify {
        padding: 10px;
        font-size: 0.95rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* Prevenir scroll en mobile */
@media (max-height: 600px) {
    .login-container {
        padding: 20px;
    }

    .login-card {
        max-height: 95vh;
        overflow-y: auto;
    }

    .footer {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }
}

/* Mensajes de error y éxito */
.message {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

.message.error {
    background-color: #fee;
    color: #c33;
    border-left: 3px solid #c33;
}

.message.success {
    background-color: #efe;
    color: #363;
    border-left: 3px solid #363;
}

.message.info {
    background-color: #eef;
    color: #336;
    border-left: 3px solid #336;
}

.message i {
    font-size: 1rem;
}

.message.error i {
    color: #c33;
}

.message.success i {
    color: #363;
}

.message.info i {
    color: #336;
}

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

/* Borde rojo en inputs con error */
.form-input.error-border {
    border-color: #c33 !important;
    box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.1) !important;
}

.form-input.error-border:focus {
    border-color: #c33 !important;
    box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.15) !important;
}

