/* Affinity Password Reset - Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #D0AF8A;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #E0E0E0;
  --bg-light: #F8F9FA;
  --success-color: #28A745;
  --error-color: #DC3545;
  --white: #FFFFFF;
}

body {
  font-family: 'Radio Canada Big', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  height: 8px;
  background: var(--primary-color);
}

.card-body {
  padding: 40px 30px;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.logo img {
  width: 130px;
  height: auto;
}

/* Typography */
h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  text-align: center;
}

p {
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
}

.text-small {
  font-size: 14px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(208, 175, 138, 0.1);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #AAAAAA;
}

.input-error {
  border-color: var(--error-color) !important;
}

.error-message {
  color: var(--error-color);
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.requirements {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  font-family: inherit;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #C09E79;
}

.btn-primary:disabled {
  background-color: #E0E0E0;
  color: #999999;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(208, 175, 138, 0.1);
}

/* Links */
.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:hover {
  color: #C09E79;
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Success/Info Box */
.info-box {
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.success-box {
  background-color: #D4EDDA;
  border-left: 4px solid var(--success-color);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.success-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  .card-body {
    padding: 30px 20px;
  }

  h1 {
    font-size: 22px;
  }

  .logo img {
    width: 110px;
  }
}

/* Loading state */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
