* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background-image: url('../images/bd.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
        }

        .site-footer {
                            background: linear-gradient(90deg, rgba(2, 44, 80, 0.95) 0%, rgba(10, 60, 100, 0.9) 100%);
                            backdrop-filter: blur(12px);
                            -webkit-backdrop-filter: blur(12px);
                            color: rgba(255, 255, 255, 0.8);
                            padding: 25px 30px;
                            text-align: center;
                            font-size: 14px;
                            width: 100%;
                            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
                            border-top: 1px solid rgba(255, 255, 255, 0.1);
                        }

                        .site-footer a {
                            color: #81d4fa;
                            text-decoration: none;
                            margin: 0 10px;
                            font-weight: 500;
                            transition: all 0.3s;
                        }

                       .site-footer a {
                           color: #81d4fa;
                           text-decoration: none;
                           margin: 0 10px;
                           font-weight: 500;
                           transition: all 0.3s;
                           display: inline-block;
                       }

                       .site-footer a:hover {
                           color: #ffffff;
                           text-shadow: 0 0 8px rgba(79, 195, 247, 0.8);
                       }

                       .site-footer a.active {
                           color: #ffffff !important;
                           text-shadow: 0 0 8px rgba(79, 195, 247, 0.8);
                       }

        .site-header .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none !important;
            color: white !important;
        }

        .site-header .logo img {
            height: 55px;
            width: auto;
            transition: height 0.3s ease;
        }

        .site-header .logo span {
            font-weight: 800;
            font-size: 24px;
            color: white;
            letter-spacing: 0.5px;
            transition: font-size 0.3s ease;
        }

        .site-header nav a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            margin-left: 25px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .site-header nav a:hover { color: #ffffff; text-shadow: 0 0 8px rgba(79, 195, 247, 0.6); }

        .content-wrapper {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            padding-top: 90px;
        }

        .container {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px);
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 420px;
        }


        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; font-weight: 600; color: #42a5f5; }
        input {
            width: 100%; padding: 12px 14px; border: 2px solid #bbdefb; border-radius: 8px;
            font-size: 15px; transition: all 0.3s; background: #f8fbff; font-family: inherit;
        }
        input:focus {
            border-color: #2196f3; outline: none; background: #fff;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }
        button {
            width: 100%; padding: 14px;
            background: linear-gradient(135deg, #0a3c64 0%, #1565c0 100%);
            color: white; border: none; border-radius: 8px; cursor: pointer;
            font-size: 15px; font-weight: 600; transition: all 0.3s;
            box-shadow: 0 4px 12px rgba(10, 60, 100, 0.3);
        }
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(10, 60, 100, 0.5);
            background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
        }
        button:active { transform: translateY(0); }
        .toggle {
            text-align: center; margin-top: 20px; color: #2196f3; cursor: pointer;
            font-weight: 500; transition: color 0.3s;
        }
        .toggle:hover { color: #1976d2; text-decoration: underline; }
        .error { color: #e53935; margin-top: 15px; text-align: center; padding: 12px; background: #ffebee; border-radius: 8px; border-left: 4px solid #e53935; display: none; }
        .success { color: #43a047; margin-top: 15px; text-align: center; padding: 12px; background: #e8f5e9; border-radius: 8px; border-left: 4px solid #43a047; display: none; }
        h2 { color: #1976d2; margin-bottom: 25px; text-align: center; }

        .site-footer {
            background: linear-gradient(90deg, rgba(2, 44, 80, 0.95) 0%, rgba(10, 60, 100, 0.9) 100%);
            color: rgba(255, 255, 255, 0.8);
            padding: 20px;
            text-align: center;
            font-size: 14px;
            width: 100%;
        }

        @media (max-width: 768px) {
            .site-header {
                padding: 0 15px;
                height: 60px;
            }
            .site-header .logo img { height: 32px; }
            .site-header .logo span { font-size: 17px; }

            .content-wrapper { padding-top: 75px; }
            .container { padding: 25px 20px; }
        }

        @media (max-width: 360px) {
            .site-header {
                padding: 0 10px;
                height: 50px;
            }
            .site-header .logo img { height: 24px; }
            .site-header .logo span { font-size: 14px; }

            .content-wrapper { padding-top: 60px; }
            .container { padding: 20px 15px; }
        }
        select.form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #b3d4fc;
            border-radius: 8px;
            font-size: 14px;
            background-color: #f8fbff;
            color: #022c50;
            outline: none;
            cursor: pointer;
            transition: border-color 0.3s, box-shadow 0.3s;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23022c50' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }

        select.form-control:focus {
            border-color: #1565c0;
            box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
        }

        select.form-control:invalid {
            color: #999;
        }

        .password-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-input-wrapper input {
            width: 100%;
            padding-right: 40px;
        }

        .generate-btn {
            position: absolute;
            right: 10px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 18px;
            opacity: 0.6;
            transition: opacity 0.3s;
        }

        .generate-btn:hover {
            opacity: 1;
        }

        .checkbox-group {
            margin-top: 15px;
            font-size: 14px;
            color: #4a5568;
        }

        .custom-checkbox {
            display: flex;
            align-items: flex-start;
            cursor: pointer;
            user-select: none;
        }

        .custom-checkbox input {
            margin-right: 10px;
            margin-top: 3px;
            accent-color: #1565c0;
        }

        .label-text a {
            color: #1565c0;
            text-decoration: underline;
        }

        .label-text a:hover {
            text-decoration: none;
        }

        .auth-link {
            text-align: center;
            margin-top: 20px;
            font-size: 14px;
        }

        .back-pill {
            position: absolute;
            top: 15px;
            left: 15px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #f1f5f9;
            color: #64748b;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            padding: 6px 14px;
            border-radius: 20px;
            transition: all 0.3s ease;
        }
        .back-pill:hover {
            background: #e2e8f0;
            color: #1976d2;
            transform: translateX(-3px);
        }
        .container h2 {
            margin-top: 40px;
        }

        .pwd-reqs-compact {
            display: flex;
            gap: 6px;
            margin-top: 6px;
            flex-wrap: wrap;
        }
        .req-chip {
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 20px;
            background: #f5f7fa;
            color: #8899a6;
            transition: all 0.2s ease;
            border: 1px solid #e1e8ed;
            user-select: none;
        }
        .req-chip.valid {
            background: #e8f5e9;
            color: #2e7d32;
            border-color: #a5d6a7;
            font-weight: 500;
        }

        .password-group {
            position: relative;
        }

        .pwd-hint-trigger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            margin-left: 6px;
            background: #e3f2fd;
            color: #1976d2;
            border-radius: 50%;
            font-size: 13px;
            font-weight: 600;
            cursor: help;
            transition: all 0.2s ease;
        }

        .pwd-hint-trigger:hover {
            background: #1976d2;
            color: #fff;
        }

        .pwd-tooltip {
            display: none;
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 12px;
            color: #455a64;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            min-width: 220px;
            white-space: nowrap;
            z-index: 10000;

        }

        .pwd-tooltip.show {
            display: block;
        }

        .pwd-tooltip::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            border-width: 6px;
            border-style: solid;
            border-color: #fff transparent transparent transparent;
        }

        .tip-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 3px 0;
        }

        .tip-row span {
            font-weight: 700;
            width: 14px;
            text-align: center;
            color: #bdbdbd;
        }

        .tip-row span.valid {
            color: #43a047;
        }