:root {
  --bg: #06111f;
  --panel: #0c1f35;
  --panel-2: #102944;
  --border: rgba(70, 160, 255, 0.25);
  --accent: #21a8ff;
  --accent-2: #22e6c3;
  --text: #f5f8ff;
  --muted: #9fb1ca;
  --danger: #ff4d63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(33, 168, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 230, 195, 0.10), transparent 28%),
    linear-gradient(180deg, #071322 0%, #030912 100%);
  color: var(--text);
}

.investor-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.investor-login-card {
  width: min(440px, 100%);
  padding: 34px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 41, 68, 0.96), rgba(8, 23, 40, 0.96));
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

form {
  display: grid;
  gap: 12px;
}

.password-login-section {
  display: grid;
  gap: 12px;
}

label {
  color: #bdd2ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(125, 173, 232, 0.22);
  background: rgba(5, 16, 30, 0.9);
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: rgba(33, 168, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(33, 168, 255, 0.12);
}

button {
  margin-top: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02111f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.apple-login-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #ffffff;
  color: #05070a;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.apple-login-btn[hidden] {
  display: none !important;
}

.apple-login-btn:hover {
  background: #f6f6f7;
  transform: translateY(-1px);
}

.apple-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #05070a;
  font-size: 14px;
  line-height: 1;
}

.gmail-login-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #f5f8ff;
  color: #071322;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.gmail-login-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.gmail-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8da6c3;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 6px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(150, 190, 240, 0.16);
}

.login-message[hidden] {
  display: none;
}

.login-message {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}

.login-message.is-error {
  border: 1px solid rgba(255, 77, 99, 0.35);
  background: rgba(255, 77, 99, 0.1);
  color: #ff9aaa;
}

.login-message.is-info {
  border: 1px solid rgba(33, 168, 255, 0.35);
  background: rgba(33, 168, 255, 0.1);
  color: #9bd8ff;
}

.login-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  padding-left: 12px;
}

.login-message-action {
  min-height: 30px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(33, 168, 255, 0.16);
  border: 1px solid rgba(33, 168, 255, 0.35);
  color: #dff3ff;
  font-size: 11px;
}

@media (max-width: 520px) {
  .investor-login-page {
    padding: 18px;
  }

  .investor-login-card {
    padding: 24px;
    border-radius: 18px;
  }

  h1 {
    font-size: 30px;
  }
}
