/* ===== Authentication Pages Styles ===== */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 180px);
  padding: 40px 20px;
}

.auth-card {
  width: min(100%, 480px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.auth-card-signup {
  max-width: 520px;
}

.auth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.auth-card-header h1 {
  font-size: 28px;
  margin: 0;
  color: #111827;
}

.auth-card-header p {
  color: #475569;
  font-size: 15px;
  margin-top: 8px;
}

.auth-card-close {
  color: #475569;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-card-close:hover {
  background: #f8fafc;
  color: #111827;
}

.social-signin {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.social-btn img {
  width: 24px;
  height: 24px;
}

.social-btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.social-google { background: #ffffff; }
.social-github { background: #ffffff; }
.social-linkedin { background: #ffffff; }

.social-google:hover { border-color: #ea4335; box-shadow: 0 6px 18px rgba(234, 67, 53, 0.15); }
.social-github:hover { border-color: #333333; box-shadow: 0 6px 18px rgba(51, 51, 51, 0.15); }
.social-linkedin:hover { border-color: #0a66c2; box-shadow: 0 6px 18px rgba(10, 102, 194, 0.15); }

.divider {
  position: relative;
  text-align: center;
  margin: 10px 0 24px;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.divider span {
  position: relative;
  background: #ffffff;
  padding: 0 14px;
  color: #64748B;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

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

.form-group label {
  font-weight: 600;
  color: #111827;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  color: #111827;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-group small {
  color: #64748B;
  font-size: 12px;
}

.auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: -8px;
  margin-bottom: 8px;
}

.auth-meta a,
.forgot-link {
  color: #3B82F6;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.auth-meta a:hover,
.forgot-link:hover {
  text-decoration: underline;
}

.auth-meta-signup {
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: #3B82F6;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* ===== Alert Styles ===== */
.alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert-error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-success {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: #64748B;
  margin: 18px 0 0;
}

.auth-footer a {
  color: #04AA6D;
  font-weight: 700;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .auth-box {
    padding: 30px 20px;
  }

  .auth-box h1 {
    font-size: 24px;
  }
}
