* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  height: 200vh; /* demo scroll */
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(12, 78, 101, 0.45); /* #0C4E65 tint */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal box */
.modal {
  background: #fff;
  width: 420px;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  text-align: center;

  border: 1px solid #e6eef2;
  box-shadow: 0 10px 30px rgba(12, 78, 101, 0.15);
}

/* Close button */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #0c4e65;
  transition: 0.2s;
}

.close:hover {
  color: #ffbe3e;
}

/* Title */
.modal h2 {
  margin-bottom: 8px;
  color: #0c4e65;
}

.subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-top: 5px;
}

.subtitle a {
  color: #ffbe3e;
  text-decoration: none;
  font-weight: 600;
}

/* Google button */
.google-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6eef2;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-bottom: 20px;
  transition: 0.2s;
}

.google-btn:hover {
  border-color: #0c4e65;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.divider span {
  flex: 1;
  height: 1px;
  background: #e6eef2;
}

.divider p {
  font-size: 12px;
  color: #9ca3af;
}

/* Form */
#authModal form {
  text-align: left;
}

#authModal label {
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
  color: #0c4e65;
}

#authModal input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e6eef2;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

#authModal input:focus {
  border-color: #0c4e65;
  box-shadow: 0 0 0 3px rgba(12, 78, 101, 0.15);
}

/* Password */
.password-box {
  position: relative;
}

.password-box .hide {
  position: absolute;
  right: 10px;
  top: 12px;
  font-size: 12px;
  cursor: pointer;
  color: #6b7280;
}

.password-box .hide:hover {
  color: #0c4e65;
}

/* Forgot */
.forgot {
  display: block;
  text-align: right;
  font-size: 12px;
  margin-bottom: 15px;
  color: #0c4e65;
  text-decoration: none;
}

.forgot:hover {
  color: #ffbe3e;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 12px;
  background: #0c4e65;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.login-btn:hover {
  background: #ffbe3e;
  color: #0c4e65;
}

/* Error */
.form-error {
  background: #ffe5e5;
  color: #d8000c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  display: none;
}

.form-error.active {
  display: block;
}

input.error {
  border-color: #d8000c;
}
