:root {
  --main-bg: #003956;
  --accent: #78ac47;
  --card-bg: #fff;
  --text-main: #003956;
  --text-light: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
}

body {
  background: var(--main-bg);
  color: var(--text-main);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding-top: 4vw;
}

.card {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0 2.5rem 2.5rem 2.5rem;
  min-width: 340px;
  max-width: 400px;
  width: 92vw;
  text-align: center;
  position: relative;
  margin: 3vw auto 4vw auto;
  box-sizing: border-box;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 2.2rem 1.2rem 1.2rem 1.2rem;
  min-height: unset;
  margin-bottom: 2.2rem;
}

.logo, .logo-top {
  width: 70px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
}

h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  font-size: 1.7rem;
}

.blurb {
  color: var(--text-main);
  font-size: 1.08rem;
  margin-bottom: 2.1rem;
  margin-top: 0.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.login-btn, .submit-btn, .action-link {
  background: var(--accent);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(120,172,71,0.10);
  text-decoration: none;
  display: inline-block;
}
.login-btn:hover, .submit-btn:hover, .action-link:hover {
  background: #5e8c36;
}

/* Primary CTA button (theme blue) */
.primary-btn {
  background: var(--main-bg);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.95rem 2.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(0,57,86,0.22);
  transition: background 0.2s, transform 0.02s;
}
.primary-btn:hover {
  background: #022b40; /* slightly darker than --main-bg */
}
.primary-btn:active {
  transform: translateY(1px);
}

form {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

.dropdown-group {
  margin-bottom: 1.5rem;
  position: relative;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.semester-dropdown {
  width: 100%;
  padding: 1rem 1.5rem 1rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: #f7fafc;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 8px rgba(0,57,86,0.06);
  transition: border 0.2s, box-shadow 0.2s;
  cursor: pointer;
  margin-bottom: 0.5rem;
  min-width: 250px;
}
.semester-dropdown:focus {
  border: 2.5px solid var(--main-bg);
  box-shadow: 0 4px 16px rgba(0,57,86,0.10);
}
.dropdown-group::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.5rem;
  width: 0;
  height: 0;
  pointer-events: none;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent);
  transform: translateY(-50%);
}
@media (max-width: 500px) {
  .card {
    padding: 0 0.5rem 1.2rem 0.5rem;
    min-width: unset;
    max-width: 98vw;
    margin: 2vw auto 4vw auto;
  }
  h2 {
    font-size: 1.2rem;
  }
  .blurb {
    font-size: 0.98rem;
  }
  .login-btn, .submit-btn, .action-link {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  .primary-btn {
    font-size: 1rem;
    padding: 0.75rem 1.4rem;
  }
  .logo, .logo-top {
    width: 48px;
  }
  .dropdown-group {
    width: 100%;
  }
  .semester-dropdown {
    font-size: 1rem;
    padding: 0.7rem 1rem 0.7rem 1rem;
  }
  .dropdown-group::after {
    right: 1rem;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--accent);
  }
  .app-header {
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
    margin-bottom: 1.2rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  .logo-top {
    width: 28px;
    height: 28px;
    margin-bottom: 0.7rem;
  }
  .app-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }
}

#loadingOverlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,57,86,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  z-index: 10;
}
.loader {
  border: 6px solid #eaf5e0;
  border-top: 6px solid var(--accent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin-bottom: 1.2rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 2.2rem auto 2.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf5e0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(120,172,71,0.10);
}
.success-icon svg {
  width: 44px;
  height: 44px;
}
.action-btns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.2rem;
}
@media (max-width: 500px) {
  .success-icon {
    width: 48px;
    height: 48px;
    margin: 1.5rem auto 1.2rem auto;
  }
  .success-icon svg {
    width: 28px;
    height: 28px;
  }
  .action-btns {
    gap: 1rem;
    margin-top: 1.2rem;
  }
}

.logo-top {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 2.5px solid #e0e6ed;
  margin: 0 auto 1.1rem auto;
  display: block;
}

.app-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.divider {
  display: none;
} 