/* Extracted from auth/login.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;
        }

        input[type="password"]::-moz-reveal {
            display: none !important;
        }

        :root {
            --deep-green: #0a4d1c;
            --maanyag-gold: #ffcc00;
        }

        body {
            background: linear-gradient(rgba(10, 77, 28, 0.9), rgba(10, 77, 28, 0.9)), url('assets/img/maanyag-hero.jpg');
            background-size: cover;
            background-position: center;
            min-height: 100vh;
            display: flex;
            align-items: center;
            font-family: 'Poppins', sans-serif;
            padding: 20px 0;
        }

        .login-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
            border: none;
        }

        .gold-line {
            height: 5px;
            background-color: var(--maanyag-gold);
        }

        .form-control {
            border-radius: 10px;
            padding: 12px;
            border: 2px solid #eee;
        }

        .form-control:focus {
            border-color: var(--maanyag-gold);
            box-shadow: none;
        }

        .form-control.is-invalid {
            border-color: #dc3545;
            background-image: none;
        }

        .form-control.is-invalid:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }

        .btn-login {
            background-color: var(--deep-green);
            color: white;
            font-weight: 700;
            padding: 12px;
            border-radius: 10px;
            border: none;
            transition: 0.3s;
        }

        .btn-login:hover {
            background-color: #1a5928;
            color: var(--maanyag-gold);
            transform: translateY(-2px);
        }

        .btn-login:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* ============================================================
           PASSWORD WRAPPER WITH EYE TOGGLE
           ============================================================ */
        .password-wrapper {
            position: relative;
        }

        .password-wrapper .form-control {
            padding-right: 48px !important;
        }

        .toggle-password-btn {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent !important;
            border: none !important;
            color: #6c757d !important;
            padding: 6px 10px !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            transition: all 0.3s ease !important;
            z-index: 10 !important;
            font-size: 18px !important;
            height: 38px !important;
            width: 38px !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: 18px !important;
            pointer-events: none !important;
        }

        .toggle-password-btn.active {
            color: var(--deep-green) !important;
        }

        .toggle-password-btn.active i {
            color: var(--deep-green) !important;
        }

        /* Captcha styles */
        .captcha-wrapper {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 12px 15px;
            border: 2px solid #eee;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        
        .captcha-image {
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 5px;
            background: white;
            height: 45px;
            cursor: pointer;
        }
        
        .captcha-input-group {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        
        .captcha-input-group input {
            width: 80px;
            text-align: center;
            border: 2px solid #ddd;
            border-radius: 8px;
            padding: 8px;
            font-size: 16px;
            font-weight: bold;
        }
        
        .captcha-input-group input:focus {
            border-color: var(--deep-green);
            outline: none;
        }
        
        .captcha-input-group input.is-invalid {
            border-color: #dc3545;
        }
        
        .captcha-input-group .equals-sign {
            font-size: 20px;
            font-weight: bold;
            color: var(--deep-green);
        }
        
        .btn-refresh-captcha {
            background: transparent;
            color: var(--deep-green);
            border: none;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 20px;
            transition: 0.3s;
        }
        
        .btn-refresh-captcha:hover {
            color: var(--maanyag-gold);
            transform: rotate(180deg);
        }
        
        .captcha-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
            display: block;
            font-weight: 500;
        }

        /* Alert Styles */
        .alert-custom {
            border-radius: 12px;
            padding: 14px 18px;
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            border: none;
            animation: slideDown 0.4s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-custom .alert-icon {
            font-size: 20px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .alert-custom .alert-content {
            flex: 1;
        }

        .alert-custom .alert-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 2px;
        }

        .alert-custom .alert-message {
            font-size: 13px;
            opacity: 0.9;
        }

        .alert-danger-custom {
            background: #fff5f5;
            border-left: 4px solid #e53e3e;
            color: #c53030;
        }

        .alert-danger-custom .alert-icon {
            color: #e53e3e;
        }

        .alert-warning-custom {
            background: #fffff0;
            border-left: 4px solid #ecc94b;
            color: #975a16;
        }

        .alert-warning-custom .alert-icon {
            color: #ecc94b;
        }

        .alert-success-custom {
            background: #f0fff4;
            border-left: 4px solid #38a169;
            color: #276749;
        }

        .alert-success-custom .alert-icon {
            color: #38a169;
        }

        .alert-info-custom {
            background: #ebf8ff;
            border-left: 4px solid #4299e1;
            color: #2b6cb0;
        }

        .alert-info-custom .alert-icon {
            color: #4299e1;
        }

        .alert-dismissible .close-btn {
            background: none;
            border: none;
            color: inherit;
            opacity: 0.5;
            cursor: pointer;
            padding: 0 4px;
            font-size: 18px;
            transition: opacity 0.3s;
            flex-shrink: 0;
        }

        .alert-dismissible .close-btn:hover {
            opacity: 1;
        }

        /* Shake animation for invalid fields */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .shake {
            animation: shake 0.5s ease;
        }

        /* Invalid feedback */
        .invalid-feedback-custom {
            display: none;
            color: #dc3545;
            font-size: 12px;
            margin-top: 4px;
            font-weight: 500;
        }

        .invalid-feedback-custom.show {
            display: block;
            animation: slideDown 0.3s ease;
        }

        /* Spinner for login button */
        .spinner-border-sm {
            width: 1rem;
            height: 1rem;
            border-width: 0.2em;
        }

        @media (max-width: 768px) {
            body {
                padding: 12px 0;
                align-items: flex-start;
            }
            .login-card {
                border-radius: 14px;
            }
        }

        @media (max-width: 576px) {
            .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;
            }
        }
