/* ================================================= */
/* LOGIN – MODERN UI */
/* ================================================= */

body {
    margin: 0;
    padding: 2rem 1rem;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    background-image: url('../front/image/bg_image/bg-4.jpg');
    background-repeat: repeat-x;
    background-position: 0 50%;
    background-size: auto 100%;
    animation: scrollBackground 120s linear infinite;
}

@keyframes scrollBackground {
    0% { background-position: 0 50%; }
    100% { background-position: -1000px 50%; }
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 2.25rem 2rem;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    transition: color 0.2s, transform 0.15s;
}

.auth-back-btn:hover {
    color: #1d4ed8;
    transform: translateX(-4px);
}

.auth-title {
    text-align: center;
    color: rgb(230, 38, 92);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.btn-primary {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    background: #2563eb;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.switch-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #64748b;
}

.switch-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

.switch-link a.forgot {
    color: #64748b;
}

.switch-link a.forgot:hover {
    color: #1e293b;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
