/* ============================================================
   login.css
   Two-panel sign-in screen: brand panel on the left, sign-in
   form on the right. Uses the same colour tokens as the rest of
   the app. The brand panel is hidden on small screens.
   ============================================================ */

:root {
  --sap-shell-bg: #0f2537;
  --sap-page-bg: #f7f9fa;
  --sap-card-bg: #ffffff;
  --sap-border-color: #d9d9d9;
  --sap-text-primary: #32363a;
  --sap-text-secondary: #6a6d70;
  --sap-brand-blue: #0a6ed1;
  --sap-brand-blue-hover: #085caf;
  --sap-error-text: #b60d0d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "72", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--sap-card-bg);
  color: var(--sap-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ========== Page layout: two halves ========== */
.login-page {
  display: flex;
  min-height: 100vh;
}

/* ========== Left: brand panel ========== */
.brand-panel {
  position: relative;
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  padding: 64px;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sap-shell-bg) 0%, #0b3a63 60%, #0a5aa0 100%);
}

/* Soft decorative circles (purely visual) */
.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.brand-panel::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -160px;
}

.brand-panel::after {
  width: 380px;
  height: 380px;
  left: -140px;
  bottom: -140px;
}

.brand-content {
  position: relative; /* keeps text above the decorative circles */
  max-width: 480px;
}

.brand-heading {
  margin: 0 0 16px 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-subtext {
  margin: 0 0 40px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #c5d6e5;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #7cc4ff;
}

.feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.feature-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #b3c7d9;
}

/* ========== Right: sign-in area ========== */
.signin-panel {
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: var(--sap-card-bg);
}

.signin-box {
  width: 100%;
  max-width: 360px;
}

.signin-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(110px, 22vh, 210px); /* shrinks on shorter screens so the form never gets cut off */
  margin: 0 auto clamp(10px, 2.5vh, 24px) auto;
  user-select: none;
}

h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--sap-text-primary);
}

.signin-subtext {
  margin: 0 0 clamp(12px, 2.5vh, 22px) 0;
  font-size: 13px;
  color: var(--sap-text-secondary);
}

.form-group {
  margin-bottom: clamp(10px, 2vh, 16px);
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sap-text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  height: 40px;
  border: 1px solid var(--sap-border-color);
  border-radius: 6px;
  color: var(--sap-text-primary);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--sap-brand-blue);
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.18);
}

.login-error {
  color: var(--sap-error-text);
  font-size: 12px;
  min-height: 16px;
  margin-bottom: 6px;
}

.login-btn {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  background: var(--sap-brand-blue);
  border: 1px solid var(--sap-brand-blue);
  color: #ffffff;
  transition: background 0.12s ease;
}

.login-btn:hover {
  background: var(--sap-brand-blue-hover);
}

.login-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.3);
}

.login-footer-link {
  text-align: center;
  margin-top: clamp(10px, 2vh, 16px);
}

.login-footer-link a {
  font-size: 12px;
  color: var(--sap-brand-blue);
  text-decoration: none;
}

.login-footer-link a:hover {
  text-decoration: underline;
}

.login-credit {
  margin-top: clamp(14px, 3vh, 30px);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sap-text-secondary);
}

.login-version {
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--sap-text-secondary);
}

/* ========== Small screens: hide the brand panel ========== */
@media (max-width: 900px) {
  .brand-panel {
    display: none;
  }

  .signin-panel {
    flex: 1 1 100%;
  }
}
