/* ========================================
   SPC Identity - Custom Styles
   Bootstrap 5 Overrides & Custom Components
   ======================================== */

/* === Color Variables === */
:root {
    --primary-blue: #0056b3;
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --dark-header: #2c3e50;
    --bg-body: #f5f5f5;
    --bg-light: #f8f9fa;
    --focus-shadow: rgba(0, 86, 179, 0.25);
}

/* === Bootstrap Overrides === */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
}

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.btn-danger {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c0392b;
    border-color: #c0392b;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.alert-info {
    border-left: 4px solid var(--primary-blue);
}

/* === Layout === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.auth-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-header h1 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

/* === Main Container === */
.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* === Auth Card === */
.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 440px;
    font-size: 0.95rem;
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-card h3 {
    font-size: 1.25rem;
}

.auth-card p {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .auth-card {
        padding: 2.5rem;
    }
}

/* === Footer === */
.auth-footer {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.875rem;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

/* === Info Box === */
.info-box {
    background-color: var(--bg-light);
    padding: 1rem;
    border-left: 4px solid var(--primary-blue);
    margin: 1.5rem 0;
    border-radius: 4px;
}

.info-box.warning {
    border-left-color: var(--warning-yellow);
    background-color: #fff3cd;
}

.info-box p {
    margin: 0.25rem 0;
}

/* === Icon Styling === */
.icon-large {
    font-size: 2.5rem;
}

.icon-heading {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

/* === Form Enhancements === */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem var(--focus-shadow);
}

.form-control,
.form-select {
    font-size: 0.95rem;
}

.form-control-lg {
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.625rem 1rem;
}

/* === Link Styling === */
.link-primary {
    color: var(--primary-blue);
    text-decoration: none;
}

.link-primary:hover {
    color: #004494;
    text-decoration: underline;
}

/* === Alert Enhancements === */
.alert {
    border-radius: 6px;
}

.alert i {
    flex-shrink: 0;
}

/* === Utility Classes === */
.text-muted-custom {
    color: #666;
}

.divider {
    border-top: 1px solid #e0e0e0;
    margin: 1.5rem 0;
}

/* === Home Page Navigation Cards === */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-800 {
    max-width: 800px;
}
