/* ==========================================================================
   Calista Light Skin – Master Production Stylesheet (Poppins Edition)
   ========================================================================== */

/* --- Root & Global Viewport Enhancements --- */
body.bg-light {
    background-color: #f8f9fa !important;
    font-family: 'Poppins', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typographic Adjustments --- */
.letter-spacing-tight {
    letter-spacing: -0.4px !important;
}

.login-title {
    color: #212529 !important;
    font-family: 'Poppins', sans-serif !important;
}

.login-subtitle {
    color: #6c757d !important;
    font-family: 'Poppins', sans-serif !important;
}

/* --- Form Controls & Interactive Sizing --- */
.form-label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif !important;
}

/* Base Input Style Customizations */
.form-control {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
    font-size: 1rem !important;
    background-color: #ffffff !important;
    color: #212529 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Input Focus Glow State Overrides matching Production Blue */
.form-control:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: 0;
}

/* 🎵 6-Digit OTP Box Structural Grids (Spotify High-Prominence Update) */
.otp-box {
    background-color: #ffffff !important; /* Pure white background like Spotify */
    border: 2px solid #dcdcdc !important; /* Thicker, defined initial baseline border */
    border-radius: 8px !important; /* Slightly smoother rounded corners */
    font-size: 1.75rem !important; /* High prominence oversized text scaling */
    font-weight: 700 !important; /* Bold font weight profile */
    color: #000000 !important; /* Absolute dark contrast value */
    transition: all 0.1s ease-in-out !important;
    caret-color: transparent !important;
}

/* 🎵 Spotify Interactive Focus State */
.otp-box:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important; /* Snaps to sharp high-contrast black on selection */
    box-shadow: 0 0 0 2px #000000 !important; /* Crisp, hard pixel outer ring profile */
    outline: 0 !important;
}

/* --- Button Component Customizations --- */
/* Production Blue Button Layout Profile */
.custom-pill-btn {
    font-family: 'Poppins', sans-serif !important;
    background-color: #0d6efd !important; /* Vibrant primary blue color */
    color: #ffffff !important; /* High contrast white typography text */
    font-weight: 500; /* Medium bold text weight configuration */
    font-size: 16px; /* Clean, legible production sizing */
    border: none !important;
    border-radius: 6px !important; /* Rectangular look with tight subtle corner smoothing */
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

.custom-pill-btn:hover {
    background-color: #0b5ed7 !important; /* Slightly deeper blue contrast step on hover */
    color: #ffffff !important;
    transform: none !important; /* Keeps button completely flat per layout specification */
}

.custom-pill-btn:active {
    background-color: #0a58ca !important; /* Deep solid accent click state feedback drop */
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

/* Anchor Hyperlink Fallback Parameters */
.btn-link, .btn-link:hover {
    font-family: 'Poppins', sans-serif !important;
    color: #0d6efd !important;
    font-weight: 500;
}

/* --- Notification & Banner Component Structural Blocks --- */
/* Borderless Minimalist Success Message Typography */
.production-logout-alert {
    font-family: 'Poppins', sans-serif !important;
    color: #198754;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Error Banner Alerts Containers */
.error-banner {
    font-family: 'Poppins', sans-serif !important;
    background-color: #e91429 !important;
    color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(233, 20, 41, 0.15);
}

/* --- Subtle Animations for HTMX Fragment Changes --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
