/* =============================================
   BrandTemplates — Login Styles
   ============================================= */

:root {
  --bg:      #0b0b0c;
  --bg-2:    #111113;
  --bg-3:    #17171a;
  --line:    #242428;
  --line-2:  #2e2e34;
  --fg:      #f5f5f4;
  --fg-2:    #c7c7c4;
  --fg-3:    #8a8a88;
  --fg-4:    #55555a;
  --blue:    #6b8aff;
  --red:     #ff6b6b;
  --radius:  2px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---- LAYOUT ---- */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ---- LEFT PANEL ---- */
.left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.left::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,138,255,0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vc-logo{
  display: flex;
}
.vc-logo img{
  width: 50px;
  height: auto;
}
.cliente-logo img{
   width: 90px;
  height: auto;
}
.left__top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.left__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5f5f4 0%, #8a8a88 45%, #111113 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.left__center {
  position: relative;
  z-index: 1;
}

.left__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 32px;
}

.left__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(107,138,255,0.6);
}

.left__headline {
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--fg);
  max-width: 520px;
}

.left__headline em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: -0.02em;
}

.left__desc {
  margin-top: 28px;
  color: var(--fg-3);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
}

.left__meta {
  position: relative;
  z-index: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-4);
}

.meta-row:last-child {
  border-bottom: 1px solid var(--line);
}

.meta-row span:last-child {
  color: var(--fg-3);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- RIGHT PANEL ---- */
.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: var(--bg-2);
}

.form-wrap {
  width: 100%;
  max-width: 360px;
  animation: riseIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header {
  margin-bottom: 40px;
}

.form-header__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-header__label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--line-2);
}

.form-header__title {
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1.1;
}

.form-header__title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--fg-2);
}

.form-header__sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-3);
}

/* ---- FORM ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field__input {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.field__input::placeholder {
  color: var(--fg-4);
}

.field__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(107,138,255,0.12);
}

.field__input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.1);
}

.field__error {
  font-size: 12px;
  color: var(--red);
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.field__error.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---- PASSWORD FIELD ---- */
.pw-wrap {
  position: relative;
}

.pw-wrap .field__input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-4);
  padding: 4px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-toggle:hover {
  color: var(--fg-2);
}

/* ---- LINKS ---- */
.forgot {
  font-size: 12px;
  color: var(--blue);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.forgot:hover {
  opacity: 1;
}

/* ---- BUTTON ---- */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-submit:hover {
  background: transparent;
  color: var(--fg);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(11,11,12,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- ERROR BANNER ---- */
.error-banner {
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  display: none;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.25s ease;
}

.error-banner.visible {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SUCCESS STATE ---- */
.success-overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.success-overlay.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(74,222,128,0.3);
  background: rgba(74,222,128,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
}

.success-title {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.success-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--fg-2);
}

.success-sub {
  font-size: 13px;
  color: var(--fg-3);
}

/* ---- FOOTER ---- */
.form-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-footer__text {
  font-size: 12px;
  color: var(--fg-4);
}

.form-footer__link {
  font-size: 12px;
  color: var(--fg-3);
  transition: color 0.2s ease;
}

.form-footer__link:hover {
  color: var(--fg);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
  }

  .left {
    display: none;
  }

  .right {
    background: var(--bg);
    padding: 32px 24px;
  }
}

.left__center {
  animation: riseIn 0.7s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
