/* Auth pages shared styles (login + register). CSP-safe: no inline styles or external fonts */

html, body {
  height: 100%;
  overflow: hidden;
}

.login-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  z-index: 1;
  overflow-y: auto;
  max-height: 100vh;
}

/* Background image is site-wide; keep here for auth pages */
body.auth-bg {
  background-image: url('../../content/images/slider.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.auth-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

/* Card styling */
.login-card {
  background-color: rgba(255,255,255,0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: none;
  overflow: hidden;
}

.card-header-custom {
  padding: 2rem 1.5rem 0;
  background: transparent;
}

.wedding-logo {
  max-width: 90px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.wedding-logo:hover {
  transform: scale(1.05);
}

.couple-names {
  /* Use system serif to avoid external font. Optionally ship local @font-face later. */
  font-family: serif;
  color: var(--theme-primary);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Button */
.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  padding: 0.6rem 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--theme-primary-mid);
  border-color: var(--theme-primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--theme-shadow);
}

/* Form controls */
.form-control {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--theme-primary-mid);
  box-shadow: 0 0 0 0.25rem var(--theme-shadow);
}

/* Links */
.register-link {
  color: var(--theme-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.register-link:hover {
  color: var(--theme-primary-mid);
  text-decoration: underline;
}

/* Alias style for forgot-password links */
.forgot-link { color: var(--theme-primary); }
.forgot-link:hover { color: var(--theme-primary-mid); }

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

.password-toggle .form-control {
  padding-right: 3rem;
}

.password-toggle .btn-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--theme-primary, #b48a78);
  padding: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle .btn-icon i,
.password-toggle .btn-icon i::before {
  color: inherit;
}

.password-toggle .btn-icon[aria-pressed="true"] {
  color: var(--theme-primary, #b48a78);
  background: transparent;
}

.password-toggle .btn-icon:hover,
.password-toggle .btn-icon:focus {
  color: var(--theme-primary-mid, #9d7360);
  box-shadow: none;
}

.password-toggle .btn-icon[aria-pressed="true"]:hover,
.password-toggle .btn-icon[aria-pressed="true"]:focus {
  color: var(--theme-primary-mid, #9d7360);
}

/* Responsive */
@media (max-width: 576px) {
  .login-card { border-radius: 10px; }
  .card-header-custom { padding: 1.5rem 1rem 0; }
  .couple-names { font-size: 1.5rem; }
}
