/* Modern Auth Pages - Claude-inspired design */
:root {
  --auth-bg: #f9fafb;
  --auth-card-bg: #ffffff;
  --auth-text-primary: #1a1a1a;
  --auth-text-secondary: #6b7280;
  --auth-text-muted: #9ca3af;
  --auth-border: #e5e7eb;
  --auth-primary: #722ed1;
  --auth-primary-hover: #5b21b6;
  --auth-input-bg: #ffffff;
  --auth-input-border: #d1d5db;
  --auth-input-focus: #722ed1;
  --auth-error: #dc2626;
  --auth-success: #059669;
}

body.signed-out {
  padding-top: 0 !important;
  background: var(--auth-bg);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main container */
body.signed-out > div {
  width: 100%;
  max-width: 420px;
  padding: 0 20px;
}

/* Header with logo */
body.signed-out .header {
  text-align: center;
  margin-bottom: 32px;
}

body.signed-out .header img {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

body.signed-out .header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--auth-text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

/* Card container */
body.signed-out .fixed-width-page {
  width: 100%;
}

body.signed-out .bg-white.tiled {
  background: var(--auth-card-bg);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 
              0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--auth-border);
}

/* Form groups */
body.signed-out .form-group {
  margin-bottom: 20px;
}

body.signed-out .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-text-primary);
  margin-bottom: 8px;
}

body.signed-out .form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-text-primary);
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

body.signed-out .form-control:focus {
  outline: none;
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px rgba(114, 46, 209, 0.1);
}

body.signed-out .form-control::placeholder {
  color: var(--auth-text-muted);
}

/* Helper text */
body.signed-out .form-text,
body.signed-out small.form-text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--auth-text-muted);
}

/* Primary button */
body.signed-out .btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: var(--auth-primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

body.signed-out .btn-primary:hover {
  background: var(--auth-primary-hover);
}

body.signed-out .btn-primary:active {
  transform: scale(0.98);
}

body.signed-out .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(114, 46, 209, 0.3);
}

/* Social/SSO login buttons */
body.signed-out .login-button,
body.signed-out a.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--auth-text-primary);
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  margin-bottom: 12px;
}

body.signed-out .login-button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  text-decoration: none;
  color: var(--auth-text-primary);
}

body.signed-out .login-button img {
  width: 20px;
  height: 20px;
}

/* Divider */
body.signed-out hr {
  border: none;
  border-top: 1px solid var(--auth-border);
  margin: 24px 0;
  position: relative;
}

/* Alert messages */
body.signed-out .alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

body.signed-out .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--auth-error);
}

body.signed-out .alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--auth-success);
}

/* Links */
body.signed-out a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

body.signed-out a:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Footer links section */
body.signed-out .text-center {
  text-align: center;
}

body.signed-out .m-t-25 {
  margin-top: 20px;
}

body.signed-out .m-b-20 {
  margin-bottom: 20px;
}

body.signed-out .m-b-25 {
  margin-bottom: 24px;
}

/* Registration/login toggle text */
body.signed-out .text-center span {
  color: var(--auth-text-secondary);
  font-size: 14px;
}

/* Page title in card */
body.signed-out .bg-white.tiled h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--auth-text-primary);
  margin: 0 0 24px 0;
  text-align: center;
}

/* Password reset success message */
body.signed-out .bg-white.tiled > div:not(.alert):not(.form-group) {
  font-size: 15px;
  line-height: 1.6;
  color: var(--auth-text-secondary);
  text-align: center;
  padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  body.signed-out > div {
    padding: 0 16px;
  }
  
  body.signed-out .bg-white.tiled {
    padding: 24px 20px;
    border-radius: 12px;
  }
  
  body.signed-out .header h3 {
    font-size: 22px;
  }
}

/* Legacy classes - keep for compatibility */
.login-or {
  position: relative;
  font-size: 14px;
  color: var(--auth-text-muted);
  margin: 24px 0;
  text-align: center;
}

.span-or {
  display: inline-block;
  background: var(--auth-card-bg);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.hr-or {
  background-color: var(--auth-border);
  height: 1px;
  margin: 0;
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
}

