/* index-portal.css - Styles for Login/Register Portal */

.country-selector {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #333;
}

.country-selector-btn:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(10, 92, 54, 0.15);
}

.country-selector-btn .flag {
  font-size: 20px;
  line-height: 1;
}

.country-selector-btn .country-name {
  font-weight: 500;
}

.country-selector-btn .bi-chevron-down {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.country-selector.open .country-selector-btn .bi-chevron-down {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.country-selector.open .country-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.country-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.country-option:hover {
  background: #f0fdf4;
}

.country-option.active {
  background: #dcfce7;
}

.country-option .flag {
  font-size: 24px;
  line-height: 1;
}

.country-option .country-info {
  flex: 1;
}

.country-option .country-name {
  font-weight: 500;
  color: #333;
}

.country-option .country-lang {
  font-size: 12px;
  color: #666;
}

.country-option .bi-check {
  color: #3b82f6;
  font-size: 18px;
  opacity: 0;
}

.country-option.active .bi-check {
  opacity: 1;
}

.type-selection.two-plus-one {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.type-selection.two-plus-one .type-card.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 576px) {
  .type-selection.two-plus-one {
    grid-template-columns: 1fr;
  }

  .type-selection.two-plus-one .type-card.full-width {
    grid-column: auto;
  }
}

.type-card[data-type="teacher"].selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
}

.type-card[data-type="teacher"]:hover {
  border-color: #2563eb;
}

.type-card[data-type="teacher"] .type-icon {
  color: #2563eb;
}

.type-card[data-type="college"].selected {
  border-color: #d97706;
  background: rgba(217, 119, 6, 0.05);
}

.type-card[data-type="college"]:hover {
  border-color: #d97706;
}

.type-card[data-type="college"] .type-icon {
  color: #d97706;
}

.verification-code-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.verification-code-container input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.verification-code-container input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
  outline: none;
}

.verification-info {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 20px;
}

.verification-info .email-display {
  font-weight: 600;
  color: #3b82f6;
  word-break: break-all;
}

.verification-info .timer {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.verification-info .timer span {
  font-weight: 600;
  color: #3b82f6;
}

.resend-link {
  text-align: center;
  margin-top: 15px;
}

.resend-link button {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
}

.resend-link button:disabled {
  color: #999;
  cursor: not-allowed;
  text-decoration: none;
}

.alert-container {
  margin-bottom: 15px;
}

.btn .spinner-border {
  width: 1rem;
  height: 1rem;
  margin-right: 8px;
}

.reset-icon-success,
.reset-icon-error {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-icon-success {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.reset-icon-error {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.reset-icon-success i,
.reset-icon-error i {
  font-size: 32px;
  color: white;
}

.password-strength {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}

.strength-weak {
  width: 33%;
  background: #dc3545;
}

.strength-fair {
  width: 66%;
  background: #ffc107;
}

.strength-strong {
  width: 100%;
  background: #3b82f6;
}

.password-requirements {
  font-size: 12px;
  color: #666;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.requirement i {
  font-size: 12px;
}

.requirement.valid {
  color: #3b82f6;
}

.requirement.invalid {
  color: #999;
}
