/* KaiSolutions Unified Auth Pages */

/* Background */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(135deg, #0078D7, #6A5ACD);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Auth Container + Card */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 40px 35px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.auth-card h2 {
  color: #0078D7;
  font-weight: 700;
  margin-bottom: 25px;
}

/* Form Elements */
.auth-card label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-weight: 500;
  color: #333;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.auth-card input:focus,
.auth-card select:focus {
  border-color: #0078D7;
  outline: none;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0078D7, #6A5ACD);
  color: #fff;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #f0f0f0;
  color: #0078D7;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Links */
.auth-card p {
  margin-top: 15px;
  font-size: 14px;
}

.auth-card p a {
  color: #0078D7;
  text-decoration: none;
  font-weight: 600;
}

.auth-card p a:hover {
  text-decoration: underline;
}

/* Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 25px;
    width: 90%;
  }
  .auth-card input, .auth-card button {
    font-size: 13px;
  }
}

/* Input Icons */
.auth-card .input-icon {
  position: relative;
}

.auth-card .input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0078D7;
}

.auth-card .input-icon input {
  padding-left: 35px;
}

/* 🔔 Profile/KYC Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  margin: 15% auto;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: fadeIn 0.5s ease-in-out;
}

.modal-content h2 {
  color: #0078D7;
  margin-bottom: 15px;
}

.modal-actions button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#updateBtn {
  background: linear-gradient(135deg, #0078D7, #6A5ACD);
  color: #fff;
}

#laterBtn {
  background: #f0f0f0;
  color: #0078D7;
}

/* Alerts */
.alert {
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
}
.alert.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid #dc3545;
}
.alert.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid #28a745;
}
