/*
 * JARVIS Login UI
 * Isolated styling for the redesigned sign-in page.
 */

body.jarvis-login {
    background: #071827;
    color: #eaf4ff;
}

body.jarvis-login::before {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(24, 113, 197, 0.20), transparent 55%),
        linear-gradient(145deg, #071827, #0b2035 65%, #06121f);
}

.jarvis-login .rd-auth-page {
    min-height: 100vh;
}

.jarvis-login .card {
    background: #10263d;
    border: 1px solid #254765;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.jarvis-login .rd-auth-head {
    background: transparent;
    border-bottom: 0;
    padding-top: 32px !important;
}

.jarvis-login .rd-auth-title {
    color: #f0f7ff;
    font-size: 21px;
    font-weight: 700;
}

.jarvis-login .rd-auth-sub {
    color: #8eaac4;
}

.jarvis-login .form-label {
    color: #c5d9ea;
}

.jarvis-login .form-control {
    background: #091b2d;
    border: 1px solid #31516e;
    border-radius: 9px;
    color: #f0f7ff;
}

.jarvis-login .form-control::placeholder {
    color: #7292af;
}

.jarvis-login .form-control:focus {
    background: #091b2d;
    border-color: #299dff;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(41, 157, 255, 0.15);
}

.jarvis-login .btn-primary {
    background: #1678dc;
    border-color: #1678dc;
    border-radius: 9px;
    color: #fff;
}

.jarvis-login .btn-primary:hover {
    background: #299dff;
    border-color: #299dff;
}

.jarvis-login .rd-auth-quiet:hover {
    color: #56b5ff;
}

/* JARVIS theme switch */
.jarvis-theme-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.jarvis-theme-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #31516e;
    border-radius: 12px;
    background: #10263d;
    color: #7cc5ff;
    cursor: pointer;
    font-size: 21px;
    transition: background .2s, border-color .2s;
}

.jarvis-theme-toggle:hover {
    background: #183957;
    border-color: #299dff;
}

[data-bs-theme="dark"] .jarvis-theme-sun,
[data-bs-theme="light"] .jarvis-theme-moon {
    display: none;
}

[data-bs-theme="light"] body.jarvis-login {
    background: #e9f2fa;
    color: #152c44;
}

[data-bs-theme="light"] body.jarvis-login::before {
    background: linear-gradient(145deg, #e9f2fa, #d9e9f7);
}

[data-bs-theme="light"] .jarvis-login .card {
    background: #ffffff;
    border-color: #cbddec;
    box-shadow: 0 24px 60px rgba(30, 72, 110, .12);
}

[data-bs-theme="light"] .jarvis-login .rd-auth-title {
    color: #152c44;
}

[data-bs-theme="light"] .jarvis-login .rd-auth-sub,
[data-bs-theme="light"] .jarvis-login .form-label {
    color: #526d86;
}

[data-bs-theme="light"] .jarvis-login .form-control {
    background: #f6f9fc;
    border-color: #cbddec;
    color: #152c44;
}

[data-bs-theme="light"] .jarvis-login .form-control:focus {
    background: #ffffff;
    border-color: #1678dc;
    color: #152c44;
}

[data-bs-theme="light"] .jarvis-theme-toggle {
    background: #ffffff;
    color: #1678dc;
    border-color: #cbddec;
}


/* JARVIS checkbox accent */
.jarvis-login .form-check-input:checked {
    background-color: #1678dc;
    border-color: #1678dc;
}

.jarvis-login .form-check-input:focus {
    border-color: #299dff;
    box-shadow: 0 0 0 3px rgba(41, 157, 255, .15);
}

/* HITIT WORKSPACE LOGIN */
.hitit-workspaces {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  border:0;
  padding:0;
}
.hitit-workspace {position:relative;cursor:pointer;min-width:0}
.hitit-workspace input {
  position:absolute;
  width:1px;height:1px;
  clip-path:inset(50%);
  overflow:hidden;
}
.hitit-workspace > span {
  display:flex;flex-direction:column;align-items:center;
  gap:5px;padding:16px 10px;border:1px solid #31516e;
  border-radius:12px;background:#091b2d;color:#c5d9ea;
}
.hitit-workspace i {font-size:24px;color:#7cc5ff}
.hitit-workspace strong {font-size:14px}
.hitit-workspace small {font-size:11px;color:#8eaac4}
.hitit-workspace input:checked + span {
  border-color:#63b3ff;background:#183957;
  box-shadow:inset 0 0 0 1px #63b3ff;
}
.hitit-workspace input:focus-visible + span {
  outline:3px solid #63b3ff;outline-offset:3px;
}
[data-bs-theme="light"] .hitit-workspace > span {
  background:#f6f9fc;border-color:#cbddec;color:#152c44;
}
[data-bs-theme="light"] .hitit-workspace small {color:#526d86}
[data-bs-theme="light"] .hitit-workspace i {color:#1678dc}
[data-bs-theme="light"] .hitit-workspace input:checked + span {
  background:#e7f3ff;border-color:#1678dc;
  box-shadow:inset 0 0 0 1px #1678dc;
}
