:root {
  --theme-color: #3498db;
  --theme-color-dark: #2980b9;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --border-color: #d1d5db;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --error-color: #e74c3c;
  --font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--background-light);
  color: var(--text-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--background-white);
}

.form-container {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  background: var(--background-white);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}

.info-section {
  background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.95)), url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
  color: var(--background-white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-section h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.info-section > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 450px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.benefits-list i {
  font-size: 1.5rem;
  color: var(--theme-color);
  margin-top: 5px;
  width: 30px;
}

.benefits-list h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.benefits-list p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.logo {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.auth-header p {
  color: var(--text-light);
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group .input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  background-color: var(--background-white);
  color: var(--text-dark);
}

.form-group .input:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group select.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

.form-group select.input:focus {
  color: var(--text-dark);
}

.form-group select.input option {
  color: var(--text-dark);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--theme-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--theme-color-dark);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--theme-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
}

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

.error-message {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  height: 1em;
}

.input-error {
  border-color: var(--error-color) !important;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.flash-messages-container {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(50% - 4rem);
  max-width: 500px;
}

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

.account-type-toggle {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.account-type-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  min-height: 60px;
}

.account-type-option .account-type-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-color: rgba(52, 152, 219, 0.12);
  color: var(--theme-color);
  font-size: 0.95rem;
}

.account-type-option .account-type-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.account-type-option .account-type-label {
  color: inherit;
  font-size: 0.95rem;
}

.account-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 152, 219, 0.12);
  color: var(--theme-color);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.account-type-option.is-active {
  border-color: var(--theme-color);
  color: var(--theme-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 2.5rem;
}

.password-wrap .icon-btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-wrap .icon-btn:hover,
.password-wrap .icon-btn.is-shown {
  color: var(--theme-color);
  background: rgba(52, 152, 219, 0.12);
}

.password-wrap .icon-btn i {
  pointer-events: none;
}

.education-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.education-link a {
  color: var(--theme-color);
  font-weight: 600;
  text-decoration: none;
}

.education-link a:hover {
  text-decoration: underline;
}

.flash-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.flash-success {
  background-color: #2ecc71;
  color: white;
}

.flash-error {
  background-color: var(--error-color);
  color: white;
}

@media (max-width: 992px) {
  .split-container {
    grid-template-columns: 1fr;
  }
  .info-section {
    display: none;
  }
  .form-section {
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
  }
  .form-container {
    max-width: 420px;
    margin: 0 auto;
  }
  .flash-messages-container {
    width: calc(100% - 4rem);
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .form-group {
    margin-bottom: 1rem;
  }
  .form-container {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .form-section {
    padding: 2rem 1rem;
  }
  .form-container {
    padding: 1.35rem 1rem;
  }
}
