/* /opt/librechat/custom-assets/login.css */

/* --- Theme tokens --- */
:root.vc-login {
  --vc-grad-1: rgba(124, 58, 237, 0.22);
  --vc-grad-2: rgba(124, 58, 237, 0.22);
  --vc-bg: #0f0f12;
  --vc-text: #f5f5f7;
  --vc-text-secondary: #b0b0b0;
  --vc-placeholder-text: #4a4a4a;
  --vc-card-bg: rgba(18, 18, 22, 0.7);
  --vc-input-bg: #1C1C1F;
  --vc-border: rgba(255, 255, 255, 0.15);
}

/* --- 1. Main Page Layout (Split Screen) --- */
:root.vc-login body {
  background:
    radial-gradient(ellipse 120% 100% at 50% 40%, rgba(124, 58, 237, 0.20), transparent 70%),
    linear-gradient(var(--vc-bg), #0b0b0e);
  margin: 0;
  color: var(--vc-text);
}

:root.vc-login #root {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100vh;
}

/* This block explicitly sets the size of the default top logo */
:root.vc-login .mt-6.h-10.w-full.bg-cover {
    height: 2.5rem; /* Corresponds to Tailwind's h-10 class */
    flex-shrink: 0;
    margin-bottom: 1rem;
}
:root.vc-login .mt-6.h-10.w-full.bg-cover img {
    height: 100%;
    width: auto;
    margin: 0 auto;
}


/* --- 2. Left Panel (Graphic/Asset) Styling --- */
:root:not(.vc-login) #vc-login-panel-left {
  display: none !important;
}

#vc-login-panel-left {
  display: grid;
  place-items: center;
  padding: 2rem;
  background: transparent;
}
.vc-asset-container {
  text-align: center;
  max-width: 400px;
}
.vc-asset-container img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 1.5rem;
}
.vc-asset-container h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  font-weight: 700;         /* Bolder */
  letter-spacing: -0.02em;
}
.vc-asset-container p {
  color: var(--vc-text-secondary);
  line-height: 1.6;
}


/* --- 3. Right Panel (Login Form) Styling --- */
:root.vc-login .relative.flex.min-h-screen {
    background-color: transparent !important;
    min-height: unset;
}
:root.vc-login .w-authPageWidth {
  background: var(--vc-card-bg) !important;
  border: 1px solid var(--vc-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
:root.vc-login .w-authPageWidth h1 { color: var(--vc-text) !important; }
:root.vc-login .w-authPageWidth p,
:root.vc-login .w-authPageWidth a { color: var(--vc-text-secondary) !important; }
:root.vc-login .w-authPageWidth a { text-decoration: underline; }
:root.vc-login .w-authPageWidth input {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border-color: var(--vc-border) !important;
}
:root.vc-login .w-authPageWidth label {
    background-color: transparent !important;
    color: var(--vc-placeholder-text) !important;
    padding: 0 4px;
}
:root.vc-login .w-authPageWidth button {
  background: linear-gradient(135deg, #7c3aed, #e55a2a);
  color: #fff;
  font-weight: 700;
}
:root.vc-login .w-authPageWidth input:not(:placeholder-shown) + label,
:root.vc-login .w-authPageWidth input:focus + label {
    background-color: var(--vc-input-bg) !important;
    color: var(--vc-text) !important;
    transform: translateY(-28px) scale(0.75);
}


/* --- 4. Responsive Layout for Mobile --- */
@media (max-width: 900px) {
  /* Revert to a natural block layout on mobile */
  :root.vc-login #root {
    display: block;
  }
  
  /* 1. Adjust our custom panel: move it up and reduce space below it */
  #vc-login-panel-left {
    padding: .75rem 1.75rem; /* Reduced top/bottom padding */
    margin-bottom: 0rem; /* Reduced margin to tighten gap */
  }

  /* 2. Reduce the size of the rev21 image and its margin */
  .vc-asset-container img {
    max-width: 220px; /* Makes the image a tad smaller */
    margin-bottom: .75rem; /* Reduces space below image */
  }

  /* 3. Reduce the space below the default logo */
  :root.vc-login .mt-6.h-10.w-full.bg-cover {
    margin-bottom: .25rem; /* Reduced margin to tighten gap */
  }

  /* 4. Adjust padding on the login form container */
  :root.vc-login .flex.flex-grow.items-center.justify-center {
    padding: 0 .75rem 5vh;
  }
}
/* --- 5. Hide theme switcher on login page --- */
:root.vc-login button[aria-label*="theme"] {
  display: none !important;
}

/* --- 6. Hide specific endpoints from all users --- */
/* Hide OpenRouter */
div[id*="endpoint-OpenRouter"] {
  display: none !important;
}

/* Hide OpenAI */
div[id*="endpoint-OpenAI"],
div[id*="endpoint-openAI"] {
  display: none !important;
}

/* Hide Google */
div[id*="endpoint-Google"],
div[id*="endpoint-google"] {
  display: none !important;
}
/* --- 7. Change "My Agents" text to "Model Selector" --- */
#endpoint-agents-menu span.truncate.text-left {
  font-size: 0 !important;
}

#endpoint-agents-menu span.truncate.text-left::before {
  content: "Model Selector";
  font-size: 0.875rem;
}
