body {
    margin: 0;
    padding: 0;
    min-block-size: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../assets/img/fondo.png') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Overlay oscuro para mejorar legibilidad */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 25px 50px 28px;
    inline-size: 100%;
    max-inline-size: 500px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 229, 255, 0.1),
        0 0 40px rgba(0, 191, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-block-end: 16px;
}

.login-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: 0.5px;
}

.highlight-dev {
    color: #00E5FF;
    text-shadow: 
        0 0 20px rgba(0, 229, 255, 0.8),
        0 0 40px rgba(0, 229, 255, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 300;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-block-end: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    inline-size: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), 0 0 15px rgba(0, 191, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-btn {
    inline-size: 100%;
    padding: 11px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-block-start: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(0, 229, 255, 0.4));
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.5), rgba(0, 229, 255, 0.6));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
    border-color: rgba(0, 229, 255, 0.7);
}

/* Error/Success messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-block-end: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

/* Loading state */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    inline-size: 20px;
    block-size: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-block-start: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 35px 25px;
        max-inline-size: 90%;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 13px;
        font-size: 0.95rem;
    }
}
