/* === AUTH SHARED STYLES === */
/* Variables */
:root {
  --brand: #0099ff;
  --brand-hover: #53baff;
  --brand-dark: #007acc;
}

/* === RESET & BASE === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fff, var(--brand), var(--brand-dark));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow-x: hidden;
  position: relative;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === WAVES === */
.waves {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
}

.wave:nth-child(1) {
  animation: wave 8s linear infinite;
  opacity: 0.5;
}

.wave:nth-child(2) {
  animation: wave 12s linear -3s infinite;
  opacity: 0.3;
}

.wave:nth-child(3) {
  animation: wave 16s linear -6s infinite;
  opacity: 0.15;
}

@keyframes wave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === AUTH CARD === */
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 90%;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 153, 255, 0.25);
  animation: fadeUp 0.8s ease forwards;
  box-sizing: border-box;
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === LOGO === */
.logo-container {
  text-align: center;
  margin-bottom: 4px;
}

#form-logo {
  width: 110px;
  height: auto;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0%   { filter: brightness(1) drop-shadow(0 0 4px rgba(0,153,255,0.3)); }
  100% { filter: brightness(1.08) drop-shadow(0 0 18px rgba(0,153,255,0.6)); }
}

/* === TITLE === */
.auth-title {
  text-align: center;
  font-size: 2.2em;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  margin: 0 0 24px 0;
  letter-spacing: 1px;
}

.beta-badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.45em;
  vertical-align: middle;
  margin-left: 8px;
  text-shadow: none;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* === INPUT GROUPS === */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--brand);
  pointer-events: none;
  z-index: 1;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid rgba(0, 153, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 0.95em;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.15);
  outline: none;
  background: #fff;
}

.input-group input::placeholder {
  color: rgba(0, 153, 255, 0.5);
}

/* Select arrow */
.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230099ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* No-icon variant for fields without icons */
.input-group.input-group--no-icon input,
.input-group.input-group--no-icon select {
  padding-left: 16px;
}

/* Date input fix */
.input-group input[type="date"] {
  min-height: 48px;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

/* === BUTTON === */
.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 153, 255, 0.4);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 153, 255, 0.5);
}

.auth-btn:active {
  transform: scale(0.98);
}

/* === RIPPLE === */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(6);
    opacity: 0;
  }
}

/* === LINKS === */
.auth-link {
  color: #fff;
  font-size: 0.9em;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.auth-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #fff;
  transition: width 0.3s ease;
}

.auth-link:hover::after {
  width: 100%;
}

/* === BOTTOM LINK (register / back to login) === */
.auth-bottom-link {
  text-align: center;
  margin-top: 20px;
}

.auth-bottom-link a {
  color: #fff;
  font-size: 0.95em;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.auth-bottom-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #fff;
  transition: width 0.3s ease;
}

.auth-bottom-link a:hover::after {
  width: 100%;
}

/* === FOOTER === */
.custom-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85em;
  font-family: Arial, Helvetica, sans-serif;
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.custom-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin: 0 8px;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.custom-footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.custom-footer a:hover {
  color: #fff;
}

.custom-footer a:hover::after {
  width: 100%;
}

/* === ALERT === */
.alert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #e74c3c;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  padding: 14px 20px;
  margin: 0;
  z-index: 100;
  text-align: center;
  font-size: 0.95em;
  box-sizing: border-box;
}

.alert.alert--success {
  background: #27ae60;
}

/* === NOTIFICATION BANNER (register) === */
.notification {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand);
  color: white;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.95em;
  font-family: Arial, Helvetica, sans-serif;
  z-index: 1000;
  display: none;
  box-sizing: border-box;
}

.notification.show {
  display: block;
}

.notification.notification--error {
  background: #e74c3c;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 153, 255, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 153, 255, 0.7); }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  body {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .auth-card {
    padding: 24px 18px;
    width: 92%;
  }

  #form-logo {
    width: 90px;
  }

  .auth-title {
    font-size: 1.7em;
  }

  .input-group input,
  .input-group select {
    padding: 12px 14px 12px 44px;
    font-size: 0.9em;
  }

  .input-group.input-group--no-icon input,
  .input-group.input-group--no-icon select {
    padding-left: 14px;
  }

  .auth-btn {
    padding: 13px;
    font-size: 1em;
  }

  .custom-footer {
    padding: 16px 12px;
    font-size: 0.8em;
  }
}
