﻿/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 22, 35, 0.68), rgba(15, 22, 35, 0.68)), url('../img/loginBg.jpg') center/cover no-repeat fixed;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #E8EDF5;
}

.login-logo {
    max-width: min(100%, 520px);
    height: auto;
}

/* ===== CARD ===== */
.card {
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px;
}

.card-body {
    padding: 2rem !important;
}

/* ===== TÍTULO ===== */
h1.h4 {
    color: #172033;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem !important;
}

/* ===== LABELS ===== */
.form-label {
    color: #4A5568;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ===== INPUTS ===== */
.form-control {
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #172033;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-control:focus {
        background-color: #FFFFFF;
        border-color: #4F8EF7;
        color: #172033;
        box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
        outline: none;
    }

    .form-control::placeholder {
        color: #94A3B8;
    }

/* ===== INPUT GROUP (password) ===== */
.input-group .form-control {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group .btn-outline-secondary {
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-left: none;
    color: #4A5568;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    padding: 0 1rem;
    transition: color 0.2s, border-color 0.2s;
}

    .input-group .btn-outline-secondary:hover {
        color: #4F8EF7;
        border-color: #4F8EF7;
        background-color: #FFFFFF;
    }

/* ===== CHECKBOX ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    background-color: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input:checked {
        background-color: #4F8EF7;
        border-color: #4F8EF7;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15);
        outline: none;
    }

.form-check-label {
    color: #4A5568;
    font-size: 0.88rem;
    cursor: pointer;
}

/* ===== BOTÓN SUBMIT ===== */
.btn-primary {
    background-color: #4F8EF7;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem;
    color: #fff;
    transition: background-color 0.2s, transform 0.1s;
}

    .btn-primary:hover {
        background-color: #3a7ae0;
        color: #fff;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

/* ===== ERRORES ===== */
.text-danger {
    color: #e05a5a !important;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: block;
}
