/* ==============================================================================
   KIWIDO — Login Screen Styles (Inspired by 03ee.jpg)
   Theme: Split Card Auth with Deep Violet Cosmic 3D Financial Graphic
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --login-canvas-bg: #F5F6FA;
  --login-card-bg: #FFFFFF;
  --login-text-dark: #1E2330;
  --login-text-muted: #64748B;
  --login-border: #E2E8F0;
  --login-indigo-btn: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
  --login-font-main: 'Inter', sans-serif;
  --login-font-display: 'Outfit', sans-serif;
}

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

body.login-page {
  background: var(--login-canvas-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--login-font-main);
  color: var(--login-text-dark);
}

.login-modal-card {
  width: 100%;
  max-width: 1040px;
  min-height: 640px;
  background: var(--login-card-bg);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(32, 38, 58, 0.08), 0 1px 3px rgba(32, 38, 58, 0.03);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px;
  gap: 12px;
}

/* Left Column: Form */
.login-left-pane {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-icon-wrap {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.45)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.login-brand-icon-wrap:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.55));
}

.login-brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-title {
  font-family: var(--login-font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 32px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input,
.form-field input[type="email"],
.form-field input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--login-border);
  background: #FFFFFF;
  color: #0F172A;
  font-size: 13.5px;
  font-family: var(--login-font-main);
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input {
  padding-right: 40px;
}

.input-with-icon input:focus,
.form-field input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  cursor: pointer;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  accent-color: #6366F1;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.trouble-link {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.trouble-link:hover {
  color: #6366F1;
}

.btn-continue-workspace {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: var(--login-indigo-btn);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 6px;
}

.btn-continue-workspace:hover {
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px 0;
  color: #94A3B8;
  font-size: 12px;
}

.divider-row::before,
.divider-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.social-auth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-btn {
  padding: 10px 0;
  border-radius: 10px;
  border: 1px solid var(--login-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #334155;
  font-size: 15px;
}

.social-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.signup-footer {
  text-align: center;
  font-size: 12.5px;
  color: #64748B;
  margin-top: 26px;
}

.signup-footer a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
}

.signup-footer a:hover {
  color: #6366F1;
}

/* Right Column: Cosmic Violet 3D Visual matching 03ee.jpg */
.login-right-pane {
  background: #09031B url('/static/images/login_pillars_panel_2x.png') center center / cover no-repeat;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  box-shadow: 0 8px 30px rgba(13, 6, 33, 0.25);
  display: flex;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .login-modal-card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .login-right-pane {
    display: none;
  }
  .login-left-pane {
    padding: 36px 28px;
  }
}
