/* css/auth.css - Redesigned for perfection */

:root {
  --primary: #6C63FF;
  --primary-dark: #5a52d4;
  --primary-light: #8f88ff;
  --secondary: #FF6584;
  --secondary-dark: #e05572;
  --secondary-light: #ff8fa3;
  --accent: #2ecc71;
  --accent-dark: #27ae60;
  
  /* Holderlian button colors */
  --btn-primary: #FF8A5C;
  --btn-primary-hover: #ff6b3d;
  --btn-secondary: #4ECDC4;
  --btn-secondary-hover: #45b8b0;
  
  --dark: #0f0f1a;
  --darker: #080812;
  --light: #f8faff;
  --lighter: #ffffff;
  --text: #1a1a2e;
  --text-light: #4a4a6a;
  --text-muted: #6b6b8b;
  --gray: #e1e5f0;
  --gray-dark: #2d2d44;
  --border: #eef2f6;
  --error: #ff4757;
  --success: #2ecc71;
  --warning: #ffa502;
  
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --transition: all 0.2s ease;
}

.dark-mode {
  --primary: #8f88ff;
  --primary-dark: #6C63FF;
  --secondary: #ff8fa3;
  --secondary-dark: #FF6584;
  --btn-primary: #FF9F6E;
  --btn-primary-hover: #ff8552;
  --btn-secondary: #6FD9D1;
  --btn-secondary-hover: #5ac9c1;
  --dark: #f8faff;
  --darker: #ffffff;
  --light: #12121a;
  --lighter: #1a1a26;
  --text: #f0f0f5;
  --text-light: #b0b0c0;
  --text-muted: #8a8aa0;
  --gray: #2a2a3a;
  --gray-dark: #3a3a50;
  --border: #2a2a3a;
}

/* Base styles */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 20px;
}

/* Main container */
.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Card */
.auth-card {
  background: var(--lighter);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--border);
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.auth-logo .logo-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
  letter-spacing: -0.3px;
}

.auth-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Form elements */
.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
}

/* Input styling - FIXED width issue */
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--lighter);
}

.form-input.error {
  border-color: var(--error);
}

.form-input.success {
  border-color: var(--success);
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--gray);
}

/* Password wrapper - FIXED alignment */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.password-toggle:hover {
  color: var(--primary);
}

/* Role selector - Smaller, side by side */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.role-card {
  position: relative;
  cursor: pointer;
}

.role-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.5rem;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.role-card input[type="radio"]:checked + .role-content {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.05);
}

.role-content i {
  font-size: 1rem;
  color: var(--primary);
}

.role-content span {
  font-weight: 500;
  color: var(--text);
}

/* Password requirements - Compact */
.password-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.requirement i {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.requirement.met {
  color: var(--success);
}

.requirement.met i {
  color: var(--success);
}

/* Bank details section */
.bank-details {
  background: var(--light);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.bank-details h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bank-details h3 i {
  color: var(--primary);
  font-size: 1rem;
}

/* Bank select */
.bank-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Verification status */
.verification-status {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verification-status.verifying {
  background: rgba(255, 165, 2, 0.1);
  color: var(--warning);
}

.verification-status.success {
  background: rgba(46, 204, 113, 0.1);
  color: var(--success);
}

.verification-status.error {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
}

.verification-status i {
  font-size: 1rem;
}

/* Verified account name */
.verified-name {
  background: rgba(46, 204, 113, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--success);
}

.verified-name span {
  color: var(--text);
  font-size: 0.9rem;
}

.verified-name strong {
  color: var(--success);
  font-weight: 600;
  font-size: 1rem;
}

/* Terms checkbox */
.terms-group {
  margin: 1.5rem 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}

.checkbox-wrapper span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.checkbox-wrapper a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-wrapper a:hover {
  text-decoration: underline;
}

/* Buttons */
.auth-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--btn-primary);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn:hover:not(:disabled) {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-btn-outline {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Links */
.auth-links {
  text-align: center;
  margin: 1.25rem 0;
}

.auth-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.auth-link:hover {
  color: var(--primary);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider span {
  padding: 0 0.75rem;
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  border-color: var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 71, 87, 0.1);
  border-color: var(--error);
  color: var(--error);
}

.alert-warning {
  background: rgba(255, 165, 2, 0.1);
  border-color: var(--warning);
  color: var(--warning);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Note text */
.note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.4rem;
  }
  
  /* Role selector stays side by side on mobile */
  .role-selector {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .role-content {
    padding: 0.6rem 0.25rem;
    font-size: 0.85rem;
  }
  
  .role-content i {
    font-size: 0.9rem;
  }
  
  .password-requirements {
    gap: 0.5rem;
  }
  
  .requirement {
    font-size: 0.7rem;
  }
  
  .bank-details {
    padding: 1rem;
  }
  
  .verified-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}