/* ADA Finance Pro - Modern Dark Login Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0e14;
  color: #e4e8ee;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-bg {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-container {
  background: #131d2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.login-logo .logo-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-logo .logo-sub {
  color: #8b97a8;
  font-size: 13px;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b97a8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
}

.input-wrap input {
  width: 100%;
  background: #1a2738;
  border: 1px solid #2d3748;
  color: #fff;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.input-wrap input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #8b97a8;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.form-check {
  margin-bottom: 22px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b97a8;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-login:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.error-msg.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: #5a6577;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
