:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --tea-green: #c8d5b9;
  --muted-teal: #8fc0a9;
  --tropical-teal: #68b0ab;
  --charcoal-blue: #464655;
  --jungle-teal: #4a7c59;

  --primary: var(--tropical-teal);
  --primary-hover: var(--jungle-teal);
  --primary-light: rgba(104, 176, 171, 0.12);
  
  --bg-gradient: radial-gradient(circle at top right, rgba(200, 213, 185, 0.25) 0%, rgba(255, 255, 255, 1) 70%), 
                 linear-gradient(135deg, rgba(143, 192, 169, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
  --card-bg: #ffffff;
  --border-color: rgba(104, 176, 171, 0.28);
  --border-strong: rgba(70, 70, 85, 0.26);

  --text-primary: var(--charcoal-blue);
  --text-secondary: rgba(70, 70, 85, 0.82);
  --text-light: rgba(70, 70, 85, 0.62);

  --shadow-sm: 0 2px 8px rgba(74, 124, 89, 0.05);
  --shadow-md: 0 10px 28px rgba(74, 124, 89, 0.08);
  --shadow-lg: 0 20px 42px rgba(74, 124, 89, 0.12);
  --radius-sm: 8px;
  --radius-md: 8px;
  --transition: 180ms ease;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}

.portal-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Logo */
.portal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.header-logo-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* Card */
.portal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  width: 100%;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.portal-card:hover {
  border-color: rgba(70, 70, 85, 0.2);
  box-shadow: var(--shadow-lg);
}

.portal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.portal-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
  outline: none;
  font-family: var(--font-body);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(143, 192, 169, 0.24);
}

/* Custom Subdomain Input Wrap */
.subdomain-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.subdomain-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(143, 192, 169, 0.24);
}

.subdomain-input-wrap .form-input {
  border: none;
  flex: 1;
  min-width: 0;
  border-radius: 0;
}

.subdomain-input-wrap .form-input:focus {
  box-shadow: none;
}

.subdomain-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(104, 176, 171, 0.08);
  border-left: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  min-height: 44px;
}

.btn-submit:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.15);
}

.btn-submit:active {
  transform: scale(0.995);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Footer */
.portal-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.portal-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.portal-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .portal-card {
    padding: 24px 20px;
  }
}
