/* ===================================
   TECH-FIX SOLUTIONS - AUTH STYLES V3
   Background Image Design with Glassmorphism
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Brand Colors */
    --brand-primary: #2563EB;
    --brand-dark: #1E40AF;
    --brand-light: var(--primary-color);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-input: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #1F2937;
    line-height: 1.6;

    /* Background Image Setup */
    background-image: url('/images/auth-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Fallback gradient if no image */
    background-color: #1E40AF;

    /* Dark overlay for better contrast */
    position: relative;
}

/* Dark overlay on background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* ===================================
   Auth Container - Glass Card
   =================================== */
.auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

/* Hide the side panel */
.auth-image {
    display: none;
}

/* ===================================
   Glass Card Effect
   =================================== */
.auth-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    padding: 2.5rem 2rem;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container {
    width: 100%;
}

/* ===================================
   Form Header
   =================================== */
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-form-header p {
    font-size: 0.9375rem;
    color: #6B7280;
    font-weight: 400;
}

/* ===================================
   Form Groups
   =================================== */
.mb-3 {
    margin-bottom: 1.25rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ===================================
   Input Groups with Icons
   =================================== */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #9CA3AF;
    font-size: 1.125rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.input-with-icon .form-control {
    padding-left: 2.875rem;
}

.input-with-icon .form-control:focus+i {
    color: var(--brand-primary);
}

/* ===================================
   Form Controls
   =================================== */
.form-control {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(209, 213, 219, 0.5);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
    box-shadow: var(--shadow-input);
}

.form-control::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.form-control:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(209, 213, 219, 0.8);
}

.form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid {
    border-color: #EF4444;
    background: rgba(254, 242, 242, 0.9);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===================================
   Validation Feedback
   =================================== */
.invalid-feedback {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #DC2626;
    font-weight: 500;
}

.form-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.text-muted {
    color: #6B7280;
}

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

/* ===================================
   Checkbox
   =================================== */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    appearance: none;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

.form-check-input:checked {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.form-check-label {
    font-size: 0.9375rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    width: 100%;
    height: 50px;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}

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

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ===================================
   Alerts
   =================================== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-success {
    background: rgba(236, 253, 245, 0.95);
    color: #065F46;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.alert-danger {
    background: rgba(254, 242, 242, 0.95);
    color: #991B1B;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ===================================
   Auth Links
   =================================== */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links p {
    margin: 0.625rem 0;
    font-size: 0.9375rem;
}

.auth-links a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

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

/* ===================================
   Utility Classes
   =================================== */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

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

.w-100 {
    width: 100%;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 576px) {
    body {
        padding: 1rem;
    }

    .auth-form {
        padding: 2rem 1.5rem;
    }

    .auth-form-header h2 {
        font-size: 1.625rem;
    }

    .form-control,
    .btn-primary {
        height: 46px;
        font-size: 0.9375rem;
    }
}