﻿body {
    background: linear-gradient(135deg, #06919A 0%, #38A7AE 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.login-main-container {
    width: 100%;
    flex: 1; /* ocupa todo el espacio disponible */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* <- permite scroll vertical */
}

.login-wrapper {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
}

/* logo */
.brand-section {
    flex: 1;
    background: rgba(6, 145, 154, 0.3);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1/1;
    margin-bottom: 30px;
}

.logo-icon {
    width: 100%;
    height: 100%;
    background-image: url("../assets/logo-completo.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.login-section {
    flex: 1;
    background: rgba(56, 167, 174, 0.15);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Título */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 32px;
    font-weight: 300;
    color: white;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
}


/* Inputs */
.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .form-control-modern::placeholder {
        color: rgba(255, 255, 255, 0.6);
        font-style: italic;
    }

    .form-control-modern:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    }

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: white;
    }

.remember-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-modern {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

    .checkbox-modern:checked {
        background: white;
        border-color: white;
    }

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .forgot-link:hover {
        color: white;
        text-decoration: underline;
    }

.login-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-modern {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}


.btn-password {
    background: rgba(8, 125, 133, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-password:hover {
        background: rgba(8, 125, 133, 1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-fingerprint {
    background: rgba(8, 125, 133, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .btn-fingerprint:hover {
        background: rgba(8, 125, 133, 1);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.alert-modern {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(5px);
}






/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 600px;
    }

    .brand-logo {
        max-width: 40%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        border-radius: 0;
        margin: 0;
    }

    .brand-logo {
        max-width: 30%;
        margin: 0;
    }

    .brand-section {
        padding: 0;
    }

    .login-title {
        font-size: 22px;
    }

    .login-buttons {
        flex-direction: column;
    }
}
