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

body.split-layout {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
}

.split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}


.brand-panel {
  display: none;
  width: 55%;
  position: relative;
  background: #002855;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.brand-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #001a38 0%, #002855 50%, #004a99 100%);
  opacity: 0.9;
}

.brand-background::before,
.brand-background::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.brand-background::before {
  top: -160px;
  right: -160px;
  width: 384px;
  height: 384px;
  background: #3b82f6;
}

.brand-background::after {
  bottom: -160px;
  left: -160px;
  width: 384px;
  height: 384px;
  background: #6366f1;
}

.brand-content {
  position: relative;
  z-index: 10;
  padding: 64px;
  color: white;
  max-width: 640px;
  width: 100%;
}

.brand-logo {
  background-image: url('../img/logo-alterdata-vertical.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  width: 200px;
  height: 106px;
  margin-bottom: 48px;
  filter: brightness(0) invert(1);
}

.brand-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.brand-highlight {
  color: #60a5fa;
}

.brand-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(191, 219, 254, 0.8);
  max-width: 500px;
}


.login-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 32px;
}

.login-content {
  width: 100%;
  max-width: 400px;
}

.mobile-logo {
  display: block;
  background-image: url('../img/logo-alterdata-vertical.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  width: 180px;
  height: 95px;
  margin-bottom: 32px;
}

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

.login-title {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.login-subtitle {
  font-size: 16px;
  color: #64748b;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border-left: 4px solid #c33;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

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

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 12px;
}

.google-button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-button:active {
  transform: scale(0.98);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span {
  padding: 0 16px;
  color: #64748b;
  font-size: 14px;
}

.login-footer {
  text-align: left;
}

.footer-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.footer-text a {
  color: #0080c8;
  text-decoration: none;
  font-weight: 500;
}

.footer-text a:hover {
  text-decoration: underline;
}


@media (min-width: 1024px) {
  .brand-panel {
    display: flex;
  }

  .login-panel {
    width: 45%;
  }

  .mobile-logo {
    display: none;
  }
}


@media (max-width: 480px) {
  .login-content {
    max-width: 100%;
  }

  .login-title {
    font-size: 24px;
  }

  .mobile-logo {
    width: 150px;
    height: 79px;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0080c8;
  box-shadow: 0 0 0 3px rgba(0, 128, 200, 0.1);
}

.form-group input::placeholder {
  color: #94a3b8;
}

.remember-me {
  margin-bottom: 16px;
}

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

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0080c8;
  cursor: pointer;
  flex-shrink: 0;
}

.form-actions {
  margin-bottom: 24px;
}

.login-button {
  width: 100%;
  padding: 12px 16px;
  background: #0080c8;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover {
  background: #006ba1;
}

.login-button:active {
  transform: scale(0.98);
}

.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  font-size: 14px;
  color: #0080c8;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.client-info {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 500;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #0080c8;
  font-size: 14px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.client-badge svg {
  flex-shrink: 0;
}

.client-badge strong {
  font-weight: 600;
}

.instruction{
  font-size: 14px;
  color: #334155;
  margin-bottom: 16px;
  margin-top: 16px;
  line-height: 1.6;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #0080c8;
}

.instruction a {
  color: #0080c8;
  text-decoration: none;
  font-weight: 600;
}

.instruction a:hover {
  text-decoration: underline;
}

/* OTP Styles */
.totp-setup {
  margin-top: 24px;
}

.totp-steps {
  list-style: none;
  counter-reset: step-counter;
  margin-bottom: 32px;
}

.totp-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

.totp-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: #0080c8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.totp-steps li p {
  margin-bottom: 12px;
}

.totp-steps li a {
  color: #0080c8;
  text-decoration: none;
  font-weight: 500;
}

.totp-steps li a:hover {
  text-decoration: underline;
}

.totp-secret {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.totp-secret code {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 2px;
  word-break: break-all;
}

.totp-config {
  list-style: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}

.totp-config li {
  padding: 8px 0;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.totp-config li:last-child {
  border-bottom: none;
}

.totp-config li strong {
  color: #0f172a;
  font-weight: 600;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 16px 0;
}

.qr-code-container img {
  max-width: 256px;
  height: auto;
  border-radius: 8px;
}

.otp-device-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.otp-device-option:hover {
  background: #f8fafc;
  border-color: #0080c8;
}

.otp-device-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.otp-device-option label {
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.input-error {
  display: block;
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

.cancel-button {
  width: 100%;
  padding: 12px 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.cancel-button:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.cancel-button:active {
  transform: scale(0.98);
}

/* Action Buttons */
button[name="submitAction"] {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  text-align: center;
}

button[name="submitAction"]:hover {
  background: #f8fafc;
  border-color: #0080c8;
  color: #0080c8;
}

button[name="submitAction"]:active {
  transform: scale(0.98);
}

button[name="submitAction"]:first-child {
  background: #0080c8;
  color: white;
  border-color: #0080c8;
}

button[name="submitAction"]:first-child:hover {
  background: #006ba1;
  border-color: #006ba1;
  color: white;
}
