

/* styles.css */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  /* Smooth gradient background */
  background: linear-gradient(135deg, #1e3c72, #2a5298, #6a11cb, #2575fc);
  background-size: 300% 300%;
  animation: gradientMove 18s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #0f172a;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  padding: 22px 24px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.3px;
}

.container {
  padding: 22px 24px 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 14px;
  color: #334155;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

input[type="file"] {
  width: 100%;
  font-size: 14px;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  background: #0ea5e9;
  color: white;
  transition: transform 0.04s ease, filter 0.2s ease;
}

button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }

.helper {
  font-size: 14px;
  color: #475569;
}

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #fecaca;
}

.success {
  background: #dcfce7;
  color: #166534;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #bbf7d0;
}

.note {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}
.college-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.college-header img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.college-header h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: #111827;
}

.college-header p {
  margin: 4px 0;
  font-size: 15px;
  color: #374151;
}

.college-header a {
  color: #1d4ed8;
  text-decoration: none;
}

.college-header a:hover {
  text-decoration: underline;
}

/* Scoped gradient background for signup page */
.signup-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #1e3c72, #2a5298, #2563eb, #1d4ed8);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

