a,
button,
label {
    user-select: none;
}
::-webkit-scrollbar{
    display: none;
}
/* CSS Variables for Theme */
:root {
    --primary: #00aeed;
    --primary-hover: #008bc0;
    --dark: #231f20;
    --light: #ffffff;
    --gray-light: #f3f4f6;
    --gray-border: #e5e7eb;
    --gray-text: #6b7280;
    --error-bg: #fef2f2;
    --error-text: #b91c1c;
    --success-bg: #f0fdf4;
    --success-text: #15803d;
}

/* Base Resets & Typography */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Viewport Height Fix - Eliminates Empty Scrolling */
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1rem;
    overflow-x: hidden;
}

/* Form Container - Base Mobile Styles */
.card-container {
    width: 100%;
    max-width: 26rem;
    background: var(--light);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    /* box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05); */
}

/* Branding Header */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-box {
    width: 4.5rem;
    height: 4.5rem;
    /* background-color: var(--light); */
    /* border-radius: 0.75rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    /* box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08); */
    overflow: hidden;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.app-subtitle {
    font-size: 0.875rem;
    color: var(--gray-text);
    margin-top: 0.25rem;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-border);
    background-color: var(--gray-light);
    color: var(--dark);
    font-size: 1rem;
    /* 16px to prevent iOS auto-zoom */
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Checkbox specific styling */
input[type="checkbox"].input-field {
    width: auto;
    padding: 0;
    margin-right: 0.5rem;
    accent-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.1875rem rgba(0, 174, 237, 0.15);
    background-color: var(--light);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

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

/* Secondary Button / Link Styled as Button */
.btn-secondary {
    background-color: var(--gray-light);
    color: var(--dark);
    border: 1px solid var(--gray-border);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Loading Spinner */
.loader {
    border: 0.125rem solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 0.125rem solid #ffffff;
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Notifications */
.notification {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.notification.error {
    display: block;
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fca5a5;
}

.notification.success {
    display: block;
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #86efac;
}

/* PWA Custom Install Banner */
.install-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: white;
    padding: 1rem;
    box-shadow: 0 -0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.install-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.install-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

/* Nav Links Menu (Dashboard) */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.nav-link {
    display: block;
    text-align: center;
    background-color: var(--gray-light);
    color: var(--dark);
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--gray-border);
    transition: all 0.2s;
}



/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-img-container {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid var(--primary);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    background-color: var(--gray-light);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center utility */
.text-center {
    text-align: center;
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
    body {
        background-color: var(--gray-light);
    }

    .card-container {
        padding: 2.5rem;
        /* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); */
        border: 1px solid var(--gray-border);
    }

    .install-banner {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 25rem;
        border-radius: 0.75rem;
    }
}

/* ==========================================
   Login Page Specific Styles (Scoped)
   ========================================== */

/* Mobile & Small Screens (Default Behavior below 800px) */
body.login-page .desktop-only-header {
    display: none;
}

body.login-page .login-right {
    display: none;
}

body.login-page .login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.login-page .login-left {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop & Larger Screens (800px and above) */
@media (min-width: 800px) {
    body.login-page {
        padding: 0;
        background-color: var(--light);
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        overflow: hidden;
        height: 100vh;
        height: 100dvh;
    }

    body.login-page .login-wrapper {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: stretch;
        justify-content: stretch;
    }

    body.login-page .login-left {
        flex: 1;
        width: auto;
        padding: 3rem;
        background-color: var(--light);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
        z-index: 2;
    }

    body.login-page .login-left .card-container {
        border: none;
        box-shadow: none;
        padding: 0;
        max-width: 26rem;
        width: 100%;
        background: transparent;
    }

    /* Hide standard mobile brand header inside login left */
    body.login-page .login-left .brand-header {
        display: none;
    }

    /* Show desktop only welcome header */
    body.login-page .desktop-only-header {
        display: block;
        margin-bottom: 2rem;
    }

    body.login-page .desktop-only-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: var(--dark);
        margin: 0 0 0.5rem 0;
        letter-spacing: -0.02em;
    }

    body.login-page .desktop-only-header p {
        font-size: 0.95rem;
        color: var(--gray-text);
        margin: 0;
    }

    /* Right Panel styling with premium look */
    body.login-page .login-right {
        display: flex;
        flex: 1.2;
        background-color: #008bc0;
        color: var(--light);
        padding: 4rem 3rem;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    /* Subtle background design element (glassmorphism/glow) */
    body.login-page .login-right::before {
        content: '';
        position: absolute;
        width: 40rem;
        height: 40rem;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0, 174, 237, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
        top: -10rem;
        right: -10rem;
        pointer-events: none;
    }

    body.login-page .login-right::after {
        content: '';
        position: absolute;
        width: 30rem;
        height: 30rem;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
        bottom: -5rem;
        left: -5rem;
        pointer-events: none;
    }

    body.login-page .right-content {
        max-width: 32rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    body.login-page .right-logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
        position: relative;
    }

    body.login-page .right-logo-box {
        width: 5rem;
        height: 5rem;
        background-color: var(--light);
        border-radius: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(0, 59, 92, 0.2);
        overflow: hidden;
        padding: 0.5rem;
        transition: transform 0.3s ease;
    }

    body.login-page .right-logo-box:hover {
        transform: scale(1.05) rotate(2deg);
    }

    body.login-page .right-logo-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    body.login-page .right-app-title {
        font-size: 2.75rem;
        font-weight: 800;
        margin: 0 0 0.25rem 0;
        letter-spacing: -0.03em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    body.login-page .right-app-subtitle {
        font-size: 1.25rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.85);
        margin: 0 0 2.5rem 0;
    }

    body.login-page .right-description {
        font-size: 1.1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem;
    }

    /* Features List Styling */
    body.login-page .features-list {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        width: 100%;
    }

    body.login-page .feature-item {
        display: flex;
        gap: 1.25rem;
        align-items: flex-start;
        transition: transform 0.2s ease;
    }

    body.login-page .feature-item:hover {
        transform: translateX(4px);
    }

    body.login-page .feature-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.75rem;
        color: var(--light);
        font-size: 1.15rem;
        flex-shrink: 0;
        backdrop-filter: blur(4px);
    }

    body.login-page .feature-text h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0;
        color: var(--light);
    }

    body.login-page .feature-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
    }

    body.login-page .right-footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.6);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        margin-top: 2rem;
    }
}