/**
 * Login Page Styles
 *
 * Styles specific to the authentication login form.
 */

/* Login card styling */
.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

/* Form styling */
#loginForm .form-control {
    height: 45px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#loginForm .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styling */
#loginForm .btn-primary {
    height: 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#loginForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Alert styling */
.alert {
    border-radius: 5px;
    font-size: 14px;
}

/* Inline SVG icons replace Font Awesome for self-contained rendering */
.login-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

.login-icon--alert {
    margin-right: 8px;
}

.login-icon--btn {
    margin-right: 4px;
}

.login-icon--spinner {
    animation: login-spin 1s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Remember me checkbox */
.form-check-input {
    margin-top: 0.3rem;
}

/* Links */
a.text-muted:hover {
    color: #007bff !important;
    text-decoration: none;
}

/* Loading state */
#loginForm.loading .btn-primary {
    opacity: 0.7;
    pointer-events: none;
}

#loginForm.loading .btn-primary::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    vertical-align: text-bottom;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}