﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   AUTH GLOBAL STYLES (Sign Up, Sign In, Forgot, Reset Password)
=============================================================== */

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

/* BACKGROUND IMAGE */
.page-bg {
  position: fixed;
  inset: 0;
  background-image: url('../images/signup-bg.png.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* LEFT WHITE PANEL */
.left-panel {
  width: 40%;
  height: 100vh;
  background: #ffffff;
  padding: 60px 70px;
  overflow-y: auto;
}

/* LOGO */
.logo {
  width: 160px;
  margin-bottom: 25px;
}

/* TITLES */
.title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: #777;
  margin-bottom: 25px;
}

/* FORM */
.form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: -6px;
}

/* NORMAL INPUT */
.form input:not([type="checkbox"]):not([type="hidden"]) {
  height: 50px;
  border: 1px solid #D0D3D7;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  font-size: 15px;
  color: #333;
}

/* PLACEHOLDER FIX (Figma look) */
::placeholder {
  color: #A4A4A4 !important;
  opacity: 1;
}

/* ========================
   PASSWORD INPUT WRAPPER
=========================== */
.input-icon {
  position: relative;
  height: 50px;
  border: 1px solid #D0D3D7;
  border-radius: 10px;
  padding: 0 14px;
  background: white;
  display: flex;
  align-items: center;
}

/* Inner input (remove double borders!) */
.input-icon input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-size: 15px;
  color: #333;
  border-radius: 0 !important;
}

/* Eye Icon */
.eye-icon,
.toggle-eye {
  position: absolute;
  right: 14px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  color: #868686;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

/* CHECKBOX */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  margin: 0;
}

.checkbox-row input[type="hidden"] {
  display: none;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #009E60;
  cursor: pointer;
}

.checkbox-row label {
  margin: 0;
  line-height: 1;
  cursor: pointer;
}

.checkbox-row label a {
  color: #009E60;
  font-weight: 600;
  text-decoration: underline;
}

/* BUTTON (Sign Up, Sign In, Submit) */
.submit, .btn, .btn-primary {
  width: 100%;
  height: 48px;
  background: #009E60 !important;
  color: white;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer !important;
  transition: 0.2s ease;
  opacity: 1 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit:hover, .btn:hover, .btn-primary:hover {
  background: #007F4F !important;
}

/* BOTTOM LINK */
.bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 15px;
  color: #555;
}

.bottom a {
  color: #009E60;
  font-weight: 600;
}

/* Alerts */
.alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.alert-success {
  background: #e7f8ef;
  color: #0f7a46;
  border: 1px solid #bfead1;
}

.alert-error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c7;
}

/* Forgot row */
.forgot-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 10px;
}

.forgot-row a {
  color: #1877F2 !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.forgot-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   OTP/VERIFY PAGES
=============================================================== */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f7f9;
  padding: 30px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo {
  width: 140px;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: #666;
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 12px;
}

.input-field {
  height: 56px;
  border: 1px solid #D0D3D7;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.auth-btn {
  margin-top: 6px;
}

/* ============================================================
   OTP MODAL (optional, currently unused)
=============================================================== */
#otpBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 30;
}

#otpModal {
  display: none;
  position: fixed;
  width: 420px;
  background: white;
  padding: 35px 40px;
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  text-align: center;
}

.otp-close {
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 22px;
  cursor: pointer;
}

.otp-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#otpIconSuccess {
  display: none;
}

#otpError {
  color: red;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.error-border {
  border: 1px solid #ff4d4d !important;
}

/* OTP Buttons */
.otp-btn-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.otp-submit {
  flex: 1;
  height: 44px;
  background: #009E60;
  color: white;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.otp-resend {
  flex: 1;
  height: 44px;
  background: white;
  border-radius: 8px;
  border: 1px solid #D0D3D7;
  cursor: pointer;
}

.otp-success-section {
  display: none;
  margin-top: 25px;
}

.otp-continue {
  width: 100%;
  height: 44px;
  background: #009E60;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .left-panel {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }
}


/* Hide browser-native password reveal buttons to keep one custom eye icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}
