/*
 * Authentication Pages Styling
 * Matches home page (/") theming and design
 */

/* Import Cambria Font */
@font-face {
    font-family: 'Cambria';
    src: url('/static/fonts/cambria.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cambria', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
}

header.sticky {
    background: rgba(var(--bg-color-rgb), 0.9) !important;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 0.125rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
}

.navbar {
    padding: 0.25rem 0;
    background: transparent !important;
    min-height: 50px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.navbar-brand {
    margin-right: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--menu-hover) !important;
}

.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--system-text);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--menu-hover);
    color: var(--text-color);
    transform: scale(1.1);
}

.navbar-toggler {
    border: 1px solid var(--sidebar-border);
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--card-bg);
}

.navbar-toggler:hover {
    background: var(--menu-hover);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

/* ========================================
   Auth Page Wrapper & Card
   ======================================== */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Logo & Header
   ======================================== */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1rem;
    animation: logoPulseGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.auth-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-page-subtitle {
    font-size: 0.95rem;
    color: var(--system-text);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   Form Elements
   ======================================== */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
    text-transform: none !important;
}

.form-control {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    color: var(--input-text);
    transition: all 0.25s ease;
    width: 100%;
    font-family: 'Cambria', 'Inter', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Override browser autofill styles */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--input-text) !important;
    caret-color: var(--input-text);
}

.form-control:-webkit-autofill {
    border-color: var(--input-border) !important;
}

.form-control:-webkit-autofill:focus {
    border-color: var(--primary-color) !important;
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset, 0 0 0 4px rgba(211, 47, 47, 0.1) !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--input-bg);
    color: var(--input-text);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.form-control:not(:placeholder-shown) {
    border-color: var(--input-border);
}

.form-error-message {
    color: #f56565;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Bootstrap form validation styling */
.form-control.is-invalid {
    border-color: #f56565;
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: #f56565;
    box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.1);
}

.form-control.is-valid {
    border-color: #00C853;
}

.form-control.is-valid:focus {
    border-color: #00C853;
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.1);
}

.invalid-feedback,
.valid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ========================================
   Input Field Groups (Email/Password)
   ======================================== */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.auth-input-group:hover {
    border-color: rgba(211, 47, 47, 0.45);
    box-shadow: 0 12px 32px rgba(211, 47, 47, 0.14);
}

.auth-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.18);
}

.auth-input-group .form-control {
    border: none !important;
    background: transparent;
    box-shadow: none;
    padding: 0.7rem 0.95rem;
    color: var(--input-text);
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 0;
    flex: 1;
    font-family: 'Cambria', 'Inter', sans-serif;
}

/* Override browser autofill for password field inside password group */
.auth-input-group .form-control:-webkit-autofill,
.auth-input-group .form-control:-webkit-autofill:hover,
.auth-input-group .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--input-text) !important;
    caret-color: var(--input-text);
    background: transparent !important;
}

.auth-input-group .form-control:focus {
    background: transparent;
    box-shadow: none;
}

.password-input-group {
    position: relative;
}

.password-input-group .input-group-text {
    position: relative;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(211, 47, 47, 0.2);
    padding: 0 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 0;
    min-width: 2.8rem;
    flex-shrink: 0;
}

.password-input-group .input-group-text:hover {
    background: rgba(211, 47, 47, 0.08);
    color: var(--primary-color);
    transform: scale(1.08);
}

.password-input-group .input-group-text:active {
    background: rgba(211, 47, 47, 0.15);
    transform: scale(0.94);
}

.password-input-group .input-group-text i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 500;
}

/* Neutralize browser autofill styling */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset;
    box-shadow: 0 0 0 1000px var(--input-bg) inset;
    -webkit-text-fill-color: var(--input-text);
    caret-color: var(--input-text);
    border-radius: inherit;
    transition: background-color 5000s ease-in-out 0s, color 0.3s ease;
}

/* ========================================
   Checkboxes & Form Checks
   ======================================== */
/* Remember Me & Forgot Password Container */
.auth-remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
    width: 100%;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: auto;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3e%3cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M1 4.5l3.2 3L11 1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 9px;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-check-input:not(:checked):hover {
    border-color: rgba(211, 47, 47, 0.4);
}

.form-check-label {
    font-size: 0.8rem;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Select elements, textareas and other input types styling */
select.form-control,
textarea.form-control,
input[type="search"].form-control,
input[type="tel"].form-control,
input[type="url"].form-control,
input[type="number"].form-control {
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--input-text);
}

select.form-control:-webkit-autofill,
select.form-control:-webkit-autofill:hover,
select.form-control:-webkit-autofill:focus,
textarea.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill:hover,
textarea.form-control:-webkit-autofill:focus,
input[type="search"].form-control:-webkit-autofill,
input[type="search"].form-control:-webkit-autofill:hover,
input[type="search"].form-control:-webkit-autofill:focus,
input[type="tel"].form-control:-webkit-autofill,
input[type="tel"].form-control:-webkit-autofill:hover,
input[type="tel"].form-control:-webkit-autofill:focus,
input[type="url"].form-control:-webkit-autofill,
input[type="url"].form-control:-webkit-autofill:hover,
input[type="url"].form-control:-webkit-autofill:focus,
input[type="number"].form-control:-webkit-autofill,
input[type="number"].form-control:-webkit-autofill:hover,
input[type="number"].form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--input-text) !important;
}

select.form-control:focus,
textarea.form-control:focus,
input[type="search"].form-control:focus,
input[type="tel"].form-control:focus,
input[type="url"].form-control:focus,
input[type="number"].form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(211, 47, 47, 0.15);
    color: #E57373;
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background: rgba(0, 200, 83, 0.15);
    color: #69F0AE;
    border-left: 4px solid #00C853;
}

/* ========================================
   Links & Text
   ======================================== */
.auth-links {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.auth-links:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */
.main-submit-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
    margin-top: 1rem;
    font-family: 'Cambria', 'Inter', sans-serif;
}

.main-submit-btn:hover {
    background: var(--link-hover-color);
    border-color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
}

.main-submit-btn:active {
    transform: translateY(0);
}

.main-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.d-none {
    display: none !important;
}

/* ========================================
   Separator & Social Login
   ======================================== */
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.2rem 0;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border: none;
    height: 2px;
    border-radius: 1px;
}

.separator::before {
    margin-right: 1rem;
    background: linear-gradient(to right, transparent 0%, var(--input-border) 60%, var(--input-border) 100%);
}

.separator::after {
    margin-left: 1rem;
    background: linear-gradient(to left, transparent 0%, var(--input-border) 60%, var(--input-border) 100%);
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-family: 'Cambria', 'Inter', sans-serif;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-login-btn i {
    font-size: 1.25rem;
}

/* ========================================
   Auth Toggle Section
   ======================================== */
.auth-toggle-section {
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--input-border);
}

.auth-toggle-text {
    color: var(--text-color);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.auth-toggle-button {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: 'Cambria', 'Inter', sans-serif;
}

.auth-toggle-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

/* ========================================
   Password Strength Indicator
   ======================================== */
.password-strength-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.password-strength-bar {
    height: 6px;
    background: var(--input-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C853, #D32F2F);
    width: 0%;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.requirement {
    font-size: 0.75rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.requirement i {
    min-width: 14px;
    font-size: 0.85rem;
}

.requirement.met i {
    color: #00C853;
}

.requirement.unmet i {
    color: #f56565;
}

/* ========================================
   Messages Container
   ======================================== */
.messages-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.messages-container .alert {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    animation: slideInDown 0.3s ease-out;
}

.messages-container .alert-danger {
    background: rgba(245, 101, 101, 0.15);
    color: #f56565;
    border-color: rgba(245, 101, 101, 0.3);
}

.messages-container .alert-success {
    background: rgba(0, 200, 83, 0.15);
    color: #69F0AE;
    border-color: rgba(0, 200, 83, 0.3);
}

.messages-container .alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.3);
}

.messages-container .alert-info {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
    border-color: rgba(33, 150, 243, 0.3);
}

.messages-container .btn-close {
    filter: brightness(1.2);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.messages-container .btn-close:hover {
    opacity: 1;
    filter: brightness(1.4);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes logoPulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(211, 47, 47, 0.6));
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    .auth-page-title {
        font-size: 1.35rem;
    }

    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .main-submit-btn {
        padding: 0.75rem 0.95rem;
        font-size: 0.9rem;
    }

    .auth-remember-forgot {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .form-check-label {
        font-size: 0.75rem;
    }

    .auth-links {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
        border-radius: 12px;
        max-width: 100%;
    }

    .auth-logo {
        height: 40px;
    }

    .auth-page-title {
        font-size: 1.2rem;
    }

    .form-label {
        font-size: 0.75rem;
    }

    .form-control {
        padding: 0.55rem 0.75rem;
        font-size: 0.85rem;
    }

    .main-submit-btn {
        padding: 0.7rem 0.85rem;
        font-size: 0.85rem;
        margin-top: 0.9rem;
    }

    .social-login-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .auth-remember-forgot {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .form-check-label {
        font-size: 0.7rem;
    }

    .auth-links {
        font-size: 0.7rem;
    }

    .form-check-input {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   Light & Dark Themes
   ======================================== */
.light-theme {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --heading-color: #1a1a1a;
    --system-text: #666666;
    --card-bg: #f8f9fa;
    --card-border: rgba(0, 0, 0, 0.1);
    --sidebar-border: rgba(0, 0, 0, 0.1);
    --menu-hover: #f0f0f0;
    --bg-color-rgb: 255, 255, 255;
    --primary-color: #D32F2F;
    --link-hover-color: #E57373;
    --input-bg: #f5f5f5;
    --input-border: rgba(0, 0, 0, 0.15);
    --input-text: #1a1a1a;
    --input-placeholder: #999999;
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #F5F5F5;
    --heading-color: #F5F5F5;
    --system-text: #B0B0B0;
    --card-bg: #1E1E1E;
    --card-border: rgba(255, 255, 255, 0.05);
    --sidebar-border: #2A2A2A;
    --menu-hover: #252525;
    --bg-color-rgb: 18, 18, 18;
    --primary-color: #D32F2F;
    --link-hover-color: #E57373;
    --input-bg: #212121;
    --input-border: #2A2A2A;
    --input-text: #F5F5F5;
    --input-placeholder: #B0B0B0;
}

.light-theme .invalid-feedback {
    color: #c41c3b;
}

.light-theme .valid-feedback {
    color: #00a841;
}

.dark-theme .invalid-feedback {
    color: #ff6b6b;
}

.dark-theme .valid-feedback {
    color: #69F0AE;
}

/* ========================================
   Utility Classes
   ======================================== */
.d-grid {
    display: grid !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* ========================================
   Smooth Transitions
   ======================================== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   Accessibility
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
