:root {
    --brand-primary: #0B4FA3;
    --brand-dark: #0F172A;
    --border-color: #E2E8F0;
    --text-main: #334155;
    --text-muted: #64748B;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    /* Smooth deep business background image layout architecture with premium overlay tint */
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.88)),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 680px;
    padding: 1.5rem 0;
}

.auth-card {
    position: relative; /* Position context for demo badge */
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 4rem 3.5rem;
    transition: var(--transition-smooth);
}

/* Top-Right Unique Demo Pill */
.demo-badge-wrapper {
    position: absolute;
    top: 24px;
    right: 24px;
}

.demo-badge-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px dashed #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.demo-badge-btn:hover {
    background: #e2e8f0;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.brand-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2.25rem;
}

.brand-logo-wrapper img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.auth-header h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 0.975rem;
    color: var(--text-muted);
}

.form-section-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.4rem;
}

.form-floating-custom {
    position: relative;
    margin-bottom: 1.75rem;
}

.form-floating-custom .form-control {
    height: 56px;
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-floating-custom .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(11, 79, 163, 0.08);
}

.form-floating-custom .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    display: block;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--brand-dark);
}

.remember-forgot-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 2.25rem;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
}

.custom-checkbox input {
    cursor: pointer;
    width: 19px;
    height: 19px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.custom-checkbox a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.custom-checkbox a:hover {
    text-decoration: underline;
}

.forget-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.forget-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    height: 54px;
    border: none;
    border-radius: 10px;
    width: 100%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: #083c7d;
    transform: translateY(-1px);
}

.oauth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2.25rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.oauth-divider:not(:empty)::before {
    margin-right: 1.25rem;
}

.oauth-divider:not(:empty)::after {
    margin-left: 1.25rem;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 52px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: var(--brand-dark);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--brand-dark);
}

.google-icon-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-block;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 110deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg);
    border-radius: 50%;
    position: relative;
    mask: radial-gradient(circle 7px at center, transparent 99%, #000 100%);
    -webkit-mask: radial-gradient(circle 7px at center, transparent 99%, #000 100%);
}

.google-icon-box::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 0;
    width: 10px;
    height: 4px;
    background: #4285f4;
}

.google-icon-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 6px;
    width: 4px;
    height: 8px;
    background: transparent;
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.pwa-badge-section {
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* Responsive Breakpoint Adaptations */
@media (max-width: 576px) {
    body {
        padding: 12px;
    }

    .auth-card {
        padding: 2.25rem 1.25rem;
        border-radius: 16px;
    }

    .demo-badge-wrapper {
        top: 14px;
        right: 14px;
    }

    .brand-logo-wrapper img {
        max-height: 95px;
    }

    .auth-header h3 {
        font-size: 1.4rem;
    }

    .auth-header p {
        font-size: 0.875rem;
    }

    .remember-forgot-bar {
        font-size: 0.8rem;
        gap: 6px;
    }

    .custom-checkbox {
        gap: 0.35rem;
    }

    .custom-checkbox input {
        width: 16px;
        height: 16px;
    }

    .google-btn {
        font-size: 0.875rem;
        gap: 8px;
        padding: 0 10px;
    }

    .auth-footer {
        font-size: 0.875rem;
    }
}

@media (max-width: 380px) {
    .remember-forgot-bar {
        font-size: 0.73rem;
    }

    .google-btn {
        font-size: 0.8rem;
    }
}

