

/* Logon page styles */

  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 20px;
        }
        
        .login-wrapper {
            background: rgba(255, 255, 255, 0.98);
            -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            max-width: 1200px;
            width: 100%;
            display: flex;
            min-height: 600px;
            animation: slideInUp 0.6s ease-out;
        }
        
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .welcome-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 50px 40px;
            flex: 0 0 40%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .welcome-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 6s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }
        
        .brand-section {
            text-align: center;
            margin-bottom: 40px;
            position: relative;
            z-index: 1;
        }
        
        .brand-logo {
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .brand-logo i {
            font-size: 2.5rem;
            color: white;
        }

        /* Ensure any image placed inside the circular brand-logo fits correctly */
        .brand-logo img {
            display: block;
            width: auto;
            max-width: 70%;
            max-height: 70%;
            object-fit: contain;
            border-radius: 50%;
        }
        
        .welcome-content h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .welcome-content p {
            font-size: 1.1rem;
            margin-bottom: 40px;
            opacity: 0.9;
            line-height: 1.6;
        }
        
        .features-list {
            list-style: none;
            position: relative;
            z-index: 1;
        }
        
        .features-list li {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            font-size: 1rem;
            opacity: 0;
            animation: fadeInLeft 0.5s ease-out forwards;
        }
        
        .features-list li:nth-child(1) { animation-delay: 0.1s; }
        .features-list li:nth-child(2) { animation-delay: 0.2s; }
        .features-list li:nth-child(3) { animation-delay: 0.3s; }
        .features-list li:nth-child(4) { animation-delay: 0.4s; }
        
        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .features-list i {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1rem;
        }
        
        .form-section {
            flex: 1;
            padding: 50px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .form-header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        .form-header h3 {
            font-size: 1.8rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 10px;
        }
        
        .form-header p {
            color: #666;
            font-size: 1rem;
        }
        
        .form-floating-custom {
            position: relative;
            margin-bottom: 25px;
        }
        
        .form-floating-custom input {
            width: 100%;
            padding: 15px 50px 15px 50px;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }
        
        .form-floating-custom input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        
        .form-floating-custom label {
            position: absolute;
            left: 50px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 16px;
            pointer-events: none;
            transition: all 0.3s ease;
            background: transparent;
            padding: 0 5px;
        }
        
        .form-floating-custom input:focus + label,
        .form-floating-custom input:not(:placeholder-shown) + label {
            top: -10px;
            left: 15px;
            font-size: 12px;
            color: #667eea;
            background: white;
            font-weight: 600;
        }
        
        .input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 18px;
            transition: color 0.3s ease;
            z-index: 1;
        }
        
        .form-floating-custom input:focus ~ .input-icon {
            color: #667eea;
        }
        
        .password-toggle {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #999;
            cursor: pointer;
            font-size: 18px;
            padding: 5px;
            transition: color 0.3s ease;
            z-index: 2;
        }
        
        .password-toggle:hover {
            color: #667eea;
        }
        
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .form-check {
            display: flex;
            align-items: center;
        }
        
        .form-check-input {
            width: 18px;
            height: 18px;
            margin-right: 8px;
            cursor: pointer;
        }
        
        .form-check-label {
            color: #666;
            font-size: 14px;
            cursor: pointer;
            -webkit-user-select: none;
            user-select: none;
        }
        
        .forgot-link {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        
        .forgot-link:hover {
            color: #764ba2;
            text-decoration: underline;
        }
        
        .btn-login {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }
        
        .btn-login:hover::before {
            left: 100%;
        }
        
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
        }
        
        .btn-login:active {
            transform: translateY(0);
        }
        
        .security-note {
            text-align: center;
            margin-top: 25px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 4px solid #28a745;
        }
        
        .security-note i {
            color: #28a745;
            margin-right: 8px;
        }
        
        .security-note small {
            color: #666;
            font-size: 13px;
        }
        
        .alert {
            border-radius: 12px;
            border: none;
            padding: 15px 20px;
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            animation: slideDown 0.3s ease-out;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .alert i {
            margin-right: 12px;
            font-size: 18px;
        }
        
        .alert-warning {
            background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
            color: #856404;
        }
        
        .alert-danger {
            background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
            color: #721c24;
        }
        
        .btn-close {
            background: none;
            border: none;
            font-size: 20px;
            margin-left: auto;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        
        .btn-close:hover {
            opacity: 1;
        }
        
        @media (max-width: 992px) {
            .login-wrapper {
                flex-direction: column;
                max-width: 500px;
            }
            
            .welcome-section {
                flex: none;
                padding: 30px;
                text-align: center;
            }
            
            .brand-logo {
                width: 80px;
                height: 80px;
                margin: 0 auto 20px;
            }
            
            .features-list {
                display: none;
            }
            
            .form-section {
                padding: 30px;
            }
        }
        
        @media (max-width: 576px) {
            body {
                padding: 10px;
            }
            
            .login-wrapper {
                border-radius: 15px;
                min-height: auto;
            }
            
            .welcome-section,
            .form-section {
                padding: 25px 20px;
            }
            
            .form-floating-custom input {
                padding: 12px 50px 12px 45px;
            }
            
            .input-icon,
            .password-toggle {
                font-size: 16px;
            }
        }

        /* Register page styles */
         body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        .register-container {
            background: rgba(255, 255, 255, 0.95);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            max-width: 900px;
            width: 100%;
            margin: 20px;
        }
        .register-left {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        .register-right {
            padding: 60px 40px;
        }
        .brand-logo {
            font-size: 3rem;
            margin-bottom: 20px;
            background: white;
            color: #667eea;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        .form-control {
            border-radius: 10px;
            border: 1px solid #e0e0e0;
            padding: 12px 20px;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }
        .btn-register {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 10px;
            padding: 12px;
            font-size: 16px;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
        }
        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }
        .input-group-text {
            background: transparent;
            border: 1px solid #e0e0e0;
            border-right: none;
            border-radius: 10px 0 0 10px;
        }
        .alert {
            border-radius: 10px;
            border: none;
        }
        @media (max-width: 768px) {
            .register-left {
                display: none;
            }
            .register-right {
                padding: 40px 30px;
            }
        }

/* Login form styles */
 body.login-page {
            min-height: 100vh;
            margin: 0;
            display: grid;
            place-items: center;
            padding: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f2d67 0%, #f8f9fa 100%);
        }

        .auth-card {
            width: min(460px, 100%);
            background: #fff;
            border-radius: 24px;
            padding: 28px;
            box-shadow: 0 20px 50px rgba(4, 25, 56, 0.16);
        }

        .auth-brand {
            text-align: center;
            margin-bottom: 22px;
        }

        .auth-brand img {
            width: 72px;
            height: 72px;
            object-fit: contain;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
            padding: 8px;
            margin-bottom: 12px;
        }

        .auth-brand h1,
        .auth-title {
            margin: 0;
            color: #102a43;
        }

        .auth-brand p,
        .auth-subtitle {
            margin: 6px 0 0;
            color: #5f6b7a;
            font-size: 0.95rem;
        }

        .auth-title {
            font-size: 1.6rem;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .auth-subtitle {
            margin-bottom: 18px;
        }

        .form-floating-custom {
            position: relative;
            margin-bottom: 14px;
        }

        .form-floating-custom input {
            width: 100%;
            padding: 1rem 3rem 1rem 2.8rem;
            border: 1px solid #dbe4f0;
            border-radius: 14px;
            background: #fbfdff;
        }

        .form-floating-custom input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
        }

        .form-floating-custom label {
            position: absolute;
            left: 42px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c7a89;
            pointer-events: none;
            transition: 0.2s ease;
            background: #fff;
            padding: 0 5px;
        }

        .form-floating-custom input:focus + label,
        .form-floating-custom input:not(:placeholder-shown) + label {
            top: -9px;
            left: 12px;
            font-size: 0.76rem;
            color: #0d6efd;
            font-weight: 700;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #0d6efd;
        }

        .password-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            color: #0d6efd;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin: 10px 0 18px;
            font-size: 0.92rem;
        }

        .forgot-link,
        .back-to-login {
            color: #0d6efd;
            text-decoration: none;
            font-weight: 700;
        }

        .btn-login {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 0.95rem 1rem;
            font-weight: 800;
            color: #fff;
            background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        }

        .security-note {
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 14px;
            background: #f6f9ff;
            color: #5f6b7a;
            font-size: 0.9rem;
        }

        .auth-alert {
            border-radius: 14px;
            border: none;
            margin-bottom: 14px;
        }

        @media (max-width: 576px) {
            body.login-page {
                padding: 12px;
            }

            .auth-card {
                padding: 22px;
                border-radius: 20px;
            }
        }

/* Forgot password page styles  */
     body.login-page {
            min-height: 100vh;
            margin: 0;
            display: grid;
            place-items: center;
            padding: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f2d67 0%, #f8f9fa 100%);
        }

        .auth-card {
            width: min(460px, 100%);
            background: #fff;
            border-radius: 24px;
            padding: 28px;
            box-shadow: 0 20px 50px rgba(4, 25, 56, 0.16);
        }

        .auth-brand {
            text-align: center;
            margin-bottom: 22px;
        }

        .auth-brand img {
            width: 72px;
            height: 72px;
            object-fit: contain;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
            padding: 8px;
            margin-bottom: 12px;
        }

        .auth-title {
            margin: 0;
            color: #102a43;
            font-size: 1.6rem;
            font-weight: 800;
        }

        .auth-subtitle {
            margin: 6px 0 0;
            color: #5f6b7a;
            font-size: 0.95rem;
        }

        .form-floating-custom {
            position: relative;
            margin-bottom: 14px;
        }

        .form-floating-custom input {
            width: 100%;
            padding: 1rem 3rem 1rem 2.8rem;
            border: 1px solid #dbe4f0;
            border-radius: 14px;
            background: #fbfdff;
        }

        .form-floating-custom input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
        }

        .form-floating-custom label {
            position: absolute;
            left: 42px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c7a89;
            pointer-events: none;
            transition: 0.2s ease;
            background: #fff;
            padding: 0 5px;
        }

        .form-floating-custom input:focus + label,
        .form-floating-custom input:not(:placeholder-shown) + label {
            top: -9px;
            left: 12px;
            font-size: 0.76rem;
            color: #0d6efd;
            font-weight: 700;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #0d6efd;
        }

        .password-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: transparent;
            color: #0d6efd;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin: 10px 0 18px;
            font-size: 0.92rem;
        }

        .back-to-login {
            color: #0d6efd;
            text-decoration: none;
            font-weight: 700;
        }

        .btn-login {
            width: 100%;
            border: none;
            border-radius: 14px;
            padding: 0.95rem 1rem;
            font-weight: 800;
            color: #fff;
            background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        }

        .security-note {
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 14px;
            background: #f6f9ff;
            color: #5f6b7a;
            font-size: 0.9rem;
        }

        .auth-alert {
            border-radius: 14px;
            border: none;
            margin-bottom: 14px;
        }

        @media (max-width: 576px) {
            body.login-page {
                padding: 12px;
            }

            .auth-card {
                padding: 22px;
                border-radius: 20px;
            }
        }