﻿
        :root {
    --primary-color:   #0e5cb8;
    --secondary-color: #f97316;
    --primary-blue:    var(--primary-color, #0e5cb8);
    --primary-orange:  var(--secondary-color, #f97316);
    --dark-text:       #1f2937;
    --light-text:      #6b7280;
    --bg-color:        #f4f6fa;
    --sidebar-width:   250px;
}
        
        body.page-login {
            font-family: 'Inter', sans-serif;
            background-color: #f8f9fa;
            min-height: 100vh !important;
            min-height: 100dvh !important;
            height: 100% !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            padding: 20px !important;
            position: relative !important;
            box-sizing: border-box !important;
        }
        
        body.page-login::before {
            content: "";
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            min-height: 100%;
            background-image: url('/images/bg2.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0.8;
            z-index: 0;
            pointer-events: none;
        }
        
        h1, h2, h3, h4, h5, h6, .btn, .font-heading {
            font-family: 'Montserrat', sans-serif;
        }
        
        .login-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            width: 100%;
            max-width: 400px;
            overflow: hidden; /* Ensures bottom SVG does not overflow rounded corners */
            position: relative;
            z-index: 1;
            margin: auto !important;
        }
        
        .login-card-content {
            padding: 35px 35px;
            position: relative;
            z-index: 2;
            text-align: center;
        }
        
        .logo-img {
            max-height: 60px;
            margin-bottom: 20px;
        }
        
        .login-title {
            color: var(--primary-color, #004aad);
            font-weight: 700;
            font-size: 1.4rem;
            margin-bottom: 5px;
        }
        
        .login-subtitle {
            color: var(--primary-color, #004aad);
            font-size: 0.9rem;
            margin-bottom: 25px;
            font-weight: 500;
        }
        
        .input-group-custom {
            margin-bottom: 20px;
            position: relative;
        }
        
        .input-group-custom .form-control {
            border-radius: 10px;
            padding-left: 45px;
            padding-right: 40px; /* Space for right icon */
            height: 45px;
            border: 1px solid #ced4da;
            color: #1f2937 !important;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }
        
        .input-group-custom .form-control::placeholder {
            color: #9ca3af !important;
            opacity: 1 !important;
        }
        
        .input-group-custom .form-control:focus {
            border-color: var(--input-focus-border, #004aad);
            box-shadow: 0 0 0 0.2rem var(--input-focus-shadow, rgba(0, 74, 173, 0.2));
            outline: none;
        }

        .input-group-custom .form-control[readonly] {
            background-color: #f0f4ff;
            border-color: #c7d7f9;
            color: #6b7280;
            cursor: not-allowed;
        }

        .input-group-custom .icon-left {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
            z-index: 4;
            font-size: 1.1rem;
        }
        
        .input-group-custom .icon-right {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
            z-index: 4;
            cursor: pointer;
            font-size: 1.1rem;
        }
        
        .btn-login {
            background-color: var(--btn-secondary-bg, var(--orange-color, #ff751f));
            color: white;
            font-weight: 600;
            border-radius: 10px;
            height: 45px;
            width: 100%;
            border: none;
            transition: all 0.3s ease;
            margin-top: 5px;
            margin-bottom: 15px;
        }
        
        .btn-login:hover {
            opacity: 0.88;
            color: white;
            transform: translateY(-2px);
        }
        
        .forgot-pass {
            font-size: 0.85rem;
            color: #4b5563;
            text-decoration: none;
            font-weight: 500;
        }
        
        .forgot-pass:hover {
            color: var(--primary-color, #004aad);
            text-decoration: underline;
        }
        
        .signup-text {
            font-size: 0.85rem;
            color: #4b5563;
            margin-top: 25px;
            margin-bottom: 40px; /* Room for the wave */
            font-weight: 500;
        }
        
        .signup-link {
            color: var(--secondary-color, var(--orange-color, #ff751f));
            font-weight: 700;
            text-decoration: none;
        }
        
        .signup-link:hover {
            opacity: 0.85;
            text-decoration: underline;
        }

        /* SVG Waves at the bottom inside card */
        .card-bottom-svg {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 0;
            line-height: 0;
            pointer-events: none;
        }

        /* ── Forgot Password Description ── */
        .fp-description {
            background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
            border: 1px solid #c7d7f9;
            border-radius: 12px;
            padding: 18px 18px 14px;
            margin-bottom: 22px;
            text-align: center;
        }
        .fp-description-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #004aad 0%, #003580 100%);
            border-radius: 50%;
            margin-bottom: 10px;
            box-shadow: 0 4px 12px rgba(0, 74, 173, 0.25);
        }
        .fp-description-icon i {
            color: #ffffff;
            font-size: 1.15rem;
        }
        .fp-description-text {
            font-size: 0.82rem;
            color: #374151;
            line-height: 1.6;
            margin-bottom: 12px;
        }
        .fp-info-tip {
            display: block;
            background: rgba(255, 117, 31, 0.08);
            border: 1px solid rgba(255, 117, 31, 0.25);
            border-radius: 8px;
            padding: 7px 12px;
            font-size: 0.78rem;
            color: #9a3412;
            font-weight: 500;
            text-align: center;
            line-height: 1.5;
        }
        .fp-info-tip i {
            color: #ff751f;
        }

        /* Alert success for status messages */
        .alert-success-custom {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border: 1px solid #6ee7b7;
            border-radius: 10px;
            color: #065f46;
            font-size: 0.85rem;
            font-weight: 500;
            padding: 10px 14px;
            margin-bottom: 18px;
            text-align: left;
        }

        /* Hide default browser password reveal icon */
        input::-ms-reveal,
        input::-ms-clear {
            display: none;
        }

        @media (max-width: 576px) {
            body.page-login {
                padding: 12px;
            }
            .login-card-content {
                padding: 25px 20px;
            }
            .login-title {
                font-size: 1.25rem;
            }
            .legal-modal-box {
                max-height: 88vh;
            }
        }
