/* Extracted from auth/register.php — keep selectors unchanged */

/* Hide native password toggle in all browsers */
        input[type="password"]::-ms-reveal,
        input[type="password"]::-ms-clear {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        input[type="password"]::-webkit-credentials-auto-fill-button,
        input[type="password"]::-webkit-caps-lock-indicator {
            display: none !important;
        }

        :root {
            --deep-green: #0a4d1c;
            --maanyag-gold: #ffcc00;
            --light-green: #e8f5e9;
            --dark-green: #064e1a;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: linear-gradient(135deg, rgba(10, 77, 28, 0.92), rgba(10, 77, 28, 0.95)), url('assets/img/maanyag-hero.jpg');
            background-size: cover;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            font-family: 'Poppins', sans-serif;
            padding: 40px 20px;
        }

        .register-card {
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            border: none;
            animation: slideUp 0.6s ease;
            position: relative;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .gold-line {
            height: 6px;
            background: linear-gradient(90deg, var(--maanyag-gold), #f5d742, var(--maanyag-gold));
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .back-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(10, 77, 28, 0.08);
            color: var(--deep-green);
            border: 1px solid rgba(10, 77, 28, 0.15);
            border-radius: 50px;
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .back-btn:hover {
            background: var(--deep-green);
            color: white;
            border-color: var(--deep-green);
            transform: translateX(-3px);
            box-shadow: 0 4px 15px rgba(10, 77, 28, 0.3);
        }

        .back-btn i {
            font-size: 1.1rem;
            transition: transform 0.3s ease;
        }

        .back-btn:hover i {
            transform: translateX(-3px);
        }

        .card-header-custom {
            padding: 30px 30px 10px;
            text-align: center;
            background: white;
        }

        .card-body-custom {
            padding: 10px 30px 30px;
        }

        .logo-container {
            margin-bottom: 15px;
        }

        .logo-container img {
            height: 65px;
            width: auto;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        .card-title {
            color: var(--deep-green);
            font-weight: 700;
            font-size: 24px;
            margin-bottom: 4px;
        }

        .card-subtitle {
            color: #6c757d;
            font-size: 14px;
            font-weight: 400;
        }

        .form-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #555;
        }

        .required-asterisk {
            color: #dc3545;
            font-weight: bold;
            margin-left: 2px;
            font-size: 1.1rem;
        }

        .optional-badge {
            font-size: 0.65rem;
            font-weight: 400;
            color: #999;
            margin-left: 5px;
        }

        .form-control,
        .form-select {
            border-radius: 10px;
            padding: 11px 14px;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .form-control:focus,
        .form-select:focus {
            border-color: var(--maanyag-gold);
            box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
        }

        .form-control.is-invalid,
        .form-select.is-invalid {
            border-color: #dc3545 !important;
            box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
        }

        .input-group .form-control {
            border-radius: 0 10px 10px 0;
        }

        .input-group-text {
            border-radius: 10px 0 0 10px;
            border: 2px solid #e9ecef;
            border-right: none;
            background: #f8f9fa;
            color: var(--deep-green);
        }

        /* ============================================================
           PASSWORD WRAPPER - SINGLE TOGGLE VISIBLE IN ALL BROWSERS
           ============================================================ */
        .password-wrapper {
            position: relative;
        }

        .password-wrapper .form-control {
            padding-right: 48px !important;
        }

        .toggle-password-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent !important;
            border: none !important;
            color: #6c757d !important;
            padding: 8px 10px !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            z-index: 10 !important;
            font-size: 20px !important;
            height: 40px !important;
            width: 40px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background-color: transparent !important;
            box-shadow: none !important;
            outline: none !important;
        }

        .toggle-password-btn:hover {
            color: var(--deep-green) !important;
            background: rgba(10, 77, 28, 0.08) !important;
        }

        .toggle-password-btn:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        .toggle-password-btn i {
            transition: all 0.3s ease !important;
            font-size: 20px !important;
            pointer-events: none !important;
        }

        .toggle-password-btn.active {
            color: var(--deep-green) !important;
        }

        .toggle-password-btn.active i {
            color: var(--deep-green) !important;
        }

        .field-error {
            color: #dc3545;
            font-size: 0.75rem;
            margin-top: 4px;
            display: none;
        }

        .field-error.show {
            display: block;
        }

        .btn-register {
            background: linear-gradient(135deg, var(--deep-green), var(--dark-green));
            color: white;
            font-weight: 700;
            padding: 14px;
            border-radius: 12px;
            border: none;
            transition: all 0.3s ease;
            font-size: 15px;
            letter-spacing: 0.5px;
            width: 100%;
        }

        .btn-register:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(10, 77, 28, 0.35);
            color: var(--maanyag-gold);
        }

        .btn-register:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .password-checker {
            margin-top: 10px;
            padding: 12px 14px;
            background: #f8f9fa;
            border-radius: 10px;
            border: 1px solid #e9ecef;
        }

        .password-checker .check-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 3px 0;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .password-checker .check-item .icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .password-checker .check-item.valid {
            color: #28a745;
        }

        .password-checker .check-item.valid .icon {
            color: #28a745;
        }

        .password-checker .check-item.invalid {
            color: #dc3545;
        }

        .password-checker .check-item.invalid .icon {
            color: #dc3545;
        }

        .password-checker .check-item .text {
            flex: 1;
        }

        .strength-meter {
            height: 4px;
            background-color: #e9ecef;
            margin-top: 10px;
            border-radius: 2px;
            overflow: hidden;
        }

        .strength-meter .bar {
            height: 100%;
            border-radius: 2px;
            transition: all 0.5s ease;
            width: 0%;
        }

        .strength-meter .bar.weak { background: #dc3545; width: 25%; }
        .strength-meter .bar.fair { background: #ffc107; width: 50%; }
        .strength-meter .bar.good { background: #17a2b8; width: 75%; }
        .strength-meter .bar.strong { background: #28a745; width: 100%; }

        .strength-label {
            font-size: 11px;
            font-weight: 600;
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .strength-label.weak { color: #dc3545; }
        .strength-label.fair { color: #ffc107; }
        .strength-label.good { color: #17a2b8; }
        .strength-label.strong { color: #28a745; }

        .password-match-msg {
            font-size: 13px;
            margin-top: 6px;
            font-weight: 500;
        }

        .password-match-msg.success {
            color: #28a745;
        }

        .password-match-msg.error {
            color: #dc3545;
        }

        .otp-info-box {
            background: #f0fff4;
            padding: 15px 18px;
            border-radius: 12px;
            border-left: 4px solid var(--deep-green);
            margin-bottom: 20px;
        }

        .otp-info-box i {
            color: var(--deep-green);
            font-size: 1.2rem;
        }

        .otp-info-box p {
            margin: 0;
            font-size: 0.9rem;
            color: #555;
        }

        .otp-info-box strong {
            color: var(--deep-green);
        }

        .required-fields-indicator {
            background: linear-gradient(135deg, #fef3f3 0%, #fde8e8 100%);
            border: 1px solid #fccccc;
            border-radius: 12px;
            padding: 12px 18px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08);
        }

        .required-fields-indicator .icon-wrapper {
            background: #dc3545;
            color: white;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .required-fields-indicator .text-content {
            flex: 1;
        }

        .required-fields-indicator .text-content .main-text {
            font-weight: 600;
            color: #333;
            font-size: 0.85rem;
            margin-bottom: 1px;
        }

        .required-fields-indicator .text-content .sub-text {
            font-size: 0.75rem;
            color: #888;
            margin: 0;
        }

        .required-fields-indicator .asterisk-badge {
            background: #dc3545;
            color: white;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            flex-shrink: 0;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

        .shake {
            animation: shake 0.3s ease-in-out;
        }

        .divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin: 20px 0 16px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e9ecef;
        }

        .divider::before {
            margin-right: 15px;
        }

        .divider::after {
            margin-left: 15px;
        }

        .divider-text {
            color: #adb5bd;
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .security-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--light-green);
            color: var(--deep-green);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        @media (max-width: 576px) {
            .back-btn {
                top: 12px;
                left: 12px;
                padding: 6px 12px;
                font-size: 0.75rem;
            }
            .back-btn .btn-text {
                display: none;
            }
            .card-header-custom {
                padding: 50px 20px 10px;
            }
            .card-body-custom {
                padding: 10px 20px 25px;
            }
            .card-title {
                font-size: 20px;
            }
            .logo-container img {
                height: 55px;
            }
            .required-fields-indicator {
                flex-wrap: wrap;
                justify-content: center;
                text-align: center;
                padding: 15px;
            }
            .required-fields-indicator .asterisk-badge {
                margin-top: 5px;
            }
            .form-control, .form-select {
                font-size: 13px;
                padding: 10px 12px;
            }
            .toggle-password-btn {
                height: 34px !important;
                width: 34px !important;
                font-size: 16px !important;
                right: 4px !important;
                padding: 4px 8px !important;
            }
            .toggle-password-btn i {
                font-size: 16px !important;
            }
            .password-wrapper .form-control {
                padding-right: 40px !important;
            }
            .password-checker .check-item {
                font-size: 11px;
            }
        }

        @media (max-width: 400px) {
            .back-btn .btn-text {
                display: none;
            }
            .back-btn {
                padding: 6px 10px;
            }
        }
