


/* === AUTH MODALS & FORMS === */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 38, 60, 0.32);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
}

.modal-content {
  background: #fff;
  padding: 2.2rem 1.6rem 2rem 1.6rem;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,40,100,0.16);
  max-width: 550px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 auto;
}

.modal-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222c3c;
  margin-bottom: 18px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 17px;
  background: transparent;
  border: none;
  font-size: 2.2em;
  font-weight: bold;
  color: #ff0000;
  cursor: pointer;
  z-index: 1;
  transition: color 0.17s;
}

.close-modal:hover {
  color: #cc0000;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  margin: 0 auto;
  width: 100%;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 4px 8px;
  border: 1.5px solid #d6dbe3;
  border-radius: 7px;
  font-size: 0.85rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f7fafd;
  transition: border 0.16s, box-shadow 0.18s;
  color: #222c3c;
  outline: none;
}

.auth-form input:focus {
  border: 1.5px solid #38d5ff;
  background: #e9f5ff;
  box-shadow: 0 1px 8px rgba(20,110,210,0.09);
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-form label {
  font-weight: 500;
  color: #283046;
  font-size: 0.98em;
}

.auth-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 8px;
}

.auth-form button[type="submit"] {
  background: #38d5ff;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1.08em;
  font-weight: bold;
  padding: 11px 14px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 0.14s;
}

.auth-form button[type="submit"]:hover {
  background: #005bb5;
}

.auth-form .error-message {
  color: #e64a19;
  font-size: 0.98em;
  margin-top: -6px;
  margin-bottom: 6px;
}

.auth-form .success-message {
  color: #23a943;
  font-size: 0.98em;
  margin-top: -6px;
  margin-bottom: 6px;
}

.modal-tab-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  gap: 12px;
}

.modal-tab {
  background: none;
  border: none;
  color: #38d5ff;
  font-size: 1em;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px 7px 0 0;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
  outline: none;
}

.modal-tab.active, .modal-tab:hover {
  background: #e6f3ff;
  color: #005bb5;
}

@media (max-width: 600px) {
  .modal-content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .modal-header { font-size: 1.05rem; }
}