/* SafePass ID Signup Page - Modern Design */

:root {
  --color-primary: #5fa7b4;
  --color-primary-hover: #4b93a0;
  --color-secondary: #a7a6d9;
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #2c3e50;
  --color-text-light: #6c757d;
  --color-border: #e0e0e0;
  --color-success: #4caf50;
  --color-error: #ef5350;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, rgba(95, 167, 180, 0.1), rgba(167, 166, 217, 0.1));
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Container */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Header */
.auth-header {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, #f8f9fa, white);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  width: 100px;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Notification */
.notification {
  margin: 1.5rem 2rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  animation: slideDown 0.3s ease;
}

.notification.error {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.notification.success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form */
.auth-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

input::placeholder {
  color: #aaa;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(95, 167, 180, 0.1);
}

.input-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
}

/* reCAPTCHA Container */
.recaptcha-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: center;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.auth-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  background: #f8f9fa;
}

.login-prompt {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

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

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

.disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-secondary);
}

/* Page Footer */
.page-footer {
  background: var(--color-surface);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.footer-note {
  margin-top: 0.5rem;
  color: var(--color-secondary);
  font-weight: 600;
}

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

  .auth-header {
    padding: 2rem 1.5rem 1rem;
  }

  .auth-form {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.notification-hidden {
  display: none;
}