/* Custom CSS to replace Tailwind utilities */

/* For login form - replacing Tailwind classes */
.login-container {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.login-form {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.input-field {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.input-field:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    display: block;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.login-button {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    cursor: pointer;
}

.login-button:hover {
    background-color: #0b5ed7;
}

.login-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Logo styles */
.lab-logo {
    height: 30px;
    max-width: 150px;
    object-fit: contain;
}

@media (max-width: 576px) {
    .lab-logo {
        height: 24px;
    }
}

/* =============================================================================
   DIRTY STATE INDICATORS
   Use class "dirty-trackable" on a form to enable automatic dirty state tracking.
   Changed fields get "field-dirty" class, submit button gets "btn-dirty" class.
   ============================================================================= */

/* Pulsing magenta border for save button when form has unsaved changes */
.btn-dirty {
    animation: pulse-magenta 1.5s ease-in-out infinite;
    border-color: #d63384 !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.5) !important;
}

@keyframes pulse-magenta {
    0%, 100% {
        box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.4);
    }
    50% {
        box-shadow: 0 0 0 0.4rem rgba(214, 51, 132, 0.6);
    }
}

/* Magenta fuzzy border for changed fields */
.field-dirty {
    border-color: #d63384 !important;
    box-shadow: 0 0 8px 2px rgba(214, 51, 132, 0.4) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Subtle indicator dot for dirty fields (optional enhancement) */
.field-dirty-wrapper {
    position: relative;
}

.field-dirty-wrapper::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #d63384;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.field-dirty-wrapper.is-dirty::after {
    opacity: 1;
}

/* Unsaved changes warning banner (optional) */
.dirty-warning {
    background-color: rgba(214, 51, 132, 0.1);
    border: 1px solid #d63384;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: #d63384;
    font-size: 0.875rem;
    display: none;
}

.dirty-warning.show {
    display: block;
}