/*
  Academic License Agreement page styles.
  Matches the glassmorphism design system (applications/DESIGN.md): canvas
  #1a1a1a, glass surfaces with hairline borders + backdrop blur, Dela
  Gothic One / Space Grotesk type. This page was previously reusing
  data-collections.css for a ".box"/".data-collections-main" layout that
  no longer exists there after that page's redesign, which left it
  falling back to style.css's old bright-purple/black-border ".box" —
  it now has its own stylesheet instead.
*/

.academic-license-main {
  padding: 2rem;
  color: #fff;
  background-color: #1a1a1a; /* colors.canvas */
}

.license-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.license-box {
  background-color: rgba(255, 255, 255, 0.05); /* surface-glass */
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  border-radius: 8px; /* rounded.sm */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* card-shadow */
  backdrop-filter: blur(5px); /* glass-blur */
  padding: 2rem 2.5rem 2.5rem;
}

.license-box h1 {
  font-family: "Dela Gothic One", cursive;
  font-weight: 400;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.license-intro {
  font-family: "Space Grotesk", sans-serif;
  color: #a0a0a0; /* ink-muted */
  margin-bottom: 1.5rem;
}

.license-text {
  max-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1); /* hairline */
  border-radius: 8px; /* rounded.sm */
  margin-bottom: 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a0a0a0; /* ink-muted */
}

.license-text h3 {
  font-family: "Space Grotesk", sans-serif;
  color: #d9c7f0; /* hm-accent lavender */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.license-text h3:first-child {
  margin-top: 0;
}

.license-text ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.license-text li {
  margin-bottom: 0.5rem;
}

.license-text a {
  color: #d9c7f0; /* hm-accent lavender */
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}

#academic-license-form {
  padding-right: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05); /* surface-glass */
  border: 1px solid rgba(255, 255, 255, 0.2); /* hairline-strong */
  border-radius: 8px; /* rounded.sm */
  color: white;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8a2be2; /* primary */
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #6a0dad, #8a2be2); /* gradient-primary */
  color: white;
  border: none;
  border-radius: 9999px; /* rounded.pill */
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error-message {
  background: rgba(223, 27, 65, 0.2);
  border: 1px solid #df1b41;
  color: #ff6b6b;
  padding: 1rem;
  border-radius: 8px; /* rounded.sm */
  margin-bottom: 1rem;
  display: none;
}

.success-message {
  background: rgba(39, 174, 96, 0.2);
  border: 1px solid #27ae60;
  color: #2ecc71;
  padding: 1.5rem;
  border-radius: 8px; /* rounded.sm */
  text-align: center;
  display: none;
}

.success-message h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.5rem;
}
