/* assets/css/login.css — Apple HIG style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../media/src/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -10;
}

.loginContainer {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    position: relative;
    z-index: 10;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
}

.welcomeText {
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.4px;
}

.formGroup {
    margin-bottom: 20px;
}

.checkboxGroup {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 8px;
}

.checkboxGroup input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0071e3;
    cursor: pointer;
}

.checkboxGroup label {
    color: #6e6e73;
    font-size: 14px;
    cursor: pointer;
}

.forgotPassword {
    color: #0071e3;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 24px;
    text-align: right;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgotPassword:hover {
    opacity: 0.8;
}

.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 22px 0;
    position: relative;
}

.dividerText {
    background: rgba(255, 255, 255, 0.9);
    padding: 0 12px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #86868b;
    font-size: 13px;
}

.loginButton {
    width: 100%;
    background: #0071e3;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 22px;
    letter-spacing: -0.1px;
}

.loginButton:hover {
    background: #0077ed;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.35);
}

.loginButton:active {
    transform: translateY(0);
    box-shadow: none;
}

.alert {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.alertError {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.alertSuccess {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    color: #1d1d1f;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #aeaeb2;
}

.containerDivIdentidad {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.containerDivIdentidad img {
    width: 65%;
    margin-top: -3%;
    margin-bottom: 6%;
}

.rememberInfo, .sessionInfo {
    text-align: center;
    font-size: 12px;
    color: #86868b;
    margin-top: 14px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rememberInfo i {
    color: #0071e3;
}

.sessionInfo i {
    color: #ff9f0a;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #0071e3;
}

.field-error {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(255, 59, 48, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 59, 48, 0.15);
    animation: fadeIn 0.25s ease;
}

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