/* Форма входа учителя — современный стиль */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #60a5fa;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 30%, #60a5fa 60%, #2563eb 100%);
  padding: 24px;
}

.auth-page {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-back {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e40af;
  text-decoration: none;
  margin-bottom: 20px;
  padding: 8px 0;
  transition: color 0.2s;
}

.auth-back:hover {
  color: #1d4ed8;
}

.auth-card {
  background: #fff;
  padding: 40px 36px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  animation: authCardIn 0.5s ease-out;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 20px;
  margin-bottom: 12px;
}

.auth-card-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.auth-card-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.auth-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-alert-icon {
  font-weight: 700;
}

.auth-form {
  margin-top: 8px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field.hidden,
.auth-submit.hidden {
  display: none !important;
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-submit {
  margin-top: 24px;
}

.auth-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}
