/* Hide sign up link and text */
a[href*="register"],
a[href*="signup"] {
    display: none !important;
}

/* Hide container if possible (requires modern browser) */
div:has(> a[href*="register"]),
div:has(> a[href*="signup"]) {
    display: none !important;
}

/* ปรับโลโก้หน้า Login (LibreChat) */

/* จับโลโก้ในหน้าล็อกอิน */
.auth-container img,
.auth-container svg,
.auth-container .logo,
.auth-container .auth-logo {
    width: 200px;
    /* ปรับขนาด */
    height: auto;
    margin-top: 40px;
    /* ขยับลง */
    margin-bottom: 16px;
    display: block;
}

/* จัดแนวคอนเทนเนอร์หน้า login ให้อยู่กลาง */
.auth-container {
    align-items: center;
}

/* Customize OpenID Login Button (Jinny X style - Outline Gradient) */
a[data-testid="openid"] {
    /* ใช้เทคนิคซ้อน Gradient: Layer แรกคือสีพื้น(หลอกว่าใส) Layer สองคือสี Gradient ที่ขอบ */
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #007aff 0%, #d946ef 100%) border-box !important;
    border: 2px solid transparent !important;
    border-radius: 12px;
    /* หรือตามความชอบ */

    color: #007aff !important;
    /* สีตัวหนังสือให้เข้ากับขอบ (Light mode) */
    font-weight: 600;
    justify-content: center !important;
    transition: all 0.3s ease;
}

/* Dark Mode Support: เปลี่ยนสีพื้นหลังปุ่มให้เป็นสีเดียวกับ Background Dark */
.dark a[data-testid="openid"] {
    background: linear-gradient(#0d0d0d, #0d0d0d) padding-box,
        linear-gradient(135deg, #007aff 0%, #d946ef 100%) border-box !important;
    color: white !important;
    /* Dark mode ตัวหนังสือขาว */
}

a[data-testid="openid"]:hover {
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

/* Hide Icon */
a[data-testid="openid"] svg,
a[data-testid="openid"] img {
    display: none !important;
}