/**
 * accounts/static/accounts/css/styles.css
 *
 * Standard layout for all account pages: parallax background (when image set)
 * or client theme. Glassmorphism on auth-card with relief and 3D shadows.
 */

/* -----------------------------------------------------------------------------
 * accounts-backdrop: parallax background area
 * When ACCOUNTS_BACKGROUND_IMAGE is set (via inline style in template): image + parallax.
 * When empty: transparent, client theme shows through.
 * ----------------------------------------------------------------------------- */

.accounts-backdrop {
  min-height: 100vh;
  padding: 2rem 0;
  /* Full viewport width (break out of container) */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

/* -----------------------------------------------------------------------------
 * auth-card: pronounced glassmorphism with relief and 3D shadows
 * ----------------------------------------------------------------------------- */

.auth-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  overflow: hidden;
  /* 3D shadows: outer glow + depth + inner highlight (relief) */
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-card-body {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
}

.auth-container {
  margin: 0 auto;
}

/* -----------------------------------------------------------------------------
 * Form elements (Bootstrap-compatible)
 * ----------------------------------------------------------------------------- */

.input-group-text {
  width: 100%;
  justify-content: center;
  display: inline-block;
}

.input-group-text .icon {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.input-group-text .text {
  display: none;
  transition: opacity 0.3s ease;
}

.input-group-text:hover .text {
  display: inline-block;
  opacity: 1;
  justify-content: center;
}

input {
  width: 100%;
  justify-content: center;
}

.text-secondary.small {
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-secondary.small:hover {
  text-decoration: underline;
  color: #0056b3 !important;
}

.auth-card-body p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
  border: none;
  background: none;
}

.auth-card-body .alert {
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-card-body .alert-info {
  background-color: rgba(224, 247, 250, 0.9);
  border: 1px solid rgba(178, 235, 242, 0.8);
  color: #00796b;
}

.auth-card-body .alert-success {
  background-color: rgba(232, 245, 233, 0.9);
  border: 1px solid rgba(200, 230, 201, 0.8);
  color: #388e3c;
}

.auth-card-body .alert-warning {
  background-color: rgba(255, 243, 224, 0.9);
  border: 1px solid rgba(255, 224, 178, 0.8);
  color: #f57c00;
}

.auth-card-body .alert-danger {
  background-color: rgba(255, 235, 238, 0.9);
  border: 1px solid rgba(255, 205, 210, 0.8);
  color: #d32f2f;
}

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

.auth-form .input-group {
  display: flex;
  align-items: center;
}

.auth-form .input-group-text {
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: inherit;
  width: 100%;
  justify-content: center;
}

.auth-form button {
  transition: background-color 0.3s ease, transform 0.1s;
}

.auth-form button:hover {
  transform: translateY(-1px);
}

.auth-form .form-check-label,
.auth-form .form-text a {
  text-decoration: none;
}

.auth-form .form-text a:hover {
  text-decoration: underline;
}
