* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f0f4f8;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flex;
  max-width: 880px;
  width: 100%;
  min-height: 480px;
}

.login-brand {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  flex: 1;
  min-width: 260px;
}

.login-brand img { width: 90px; margin-bottom: 28px;  }
.login-brand h2  { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.login-brand p   { font-size: 0.95rem; opacity: 0.85; text-align: center; margin: 0; }

.login-form-area {
  flex: 1.2;
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-area h4    { font-weight: 700; margin-bottom: 6px; color: #1a1a2e; }
.login-form-area p.sub { color: #6c757d; font-size: 0.9rem; margin-bottom: 28px; }

.form-label { font-weight: 600; font-size: 0.875rem; color: #444; }

.form-control {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color .2s;
}
.form-control:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

.btn-primary {
  background: #1a73e8;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 0.97rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-primary:hover { background: #1558b0; }

.form-footer { margin-top: 20px; font-size: 0.875rem; color: #6c757d; text-align: center; }
.form-footer a { color: #1a73e8; text-decoration: none; font-weight: 500; }

.alert { border-radius: 8px; font-size: 0.9rem; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert { animation: fadeIn .25s ease; }

.otp-box {
  width: 56px; height: 56px;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  border-radius: 10px;
  border: 2px solid #dee2e6;
}
.otp-box:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.15); outline: none; }

@media (max-width: 640px) {
  body { align-items: flex-start; padding: 20px 12px; }
  .login-card { flex-direction: column; box-shadow: none; border-radius: 12px; }
  .login-brand { padding: 36px 24px 28px; min-width: unset; }
  .login-form-area { padding: 32px 24px; }
}
