* { font-family: 'Inter', sans-serif; box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: blob 8s ease-in-out infinite;
}

body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
  border-radius: 50%;
  animation: blob 10s ease-in-out infinite reverse;
}

@keyframes blob {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.1) translate(30px, -20px); }
  66% { transform: scale(0.9) translate(-20px, 30px); }
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.portal-badge {
  text-align: center;
  margin-bottom: 24px;
}

.portal-badge .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(14,165,233,0.4);
}

.portal-badge h1 {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.portal-badge p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-top: 4px;
}

.login-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.alert-danger {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-field {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 16px 12px 44px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}

.input-field::placeholder {
  color: rgba(255,255,255,0.3);
}

.input-field:focus {
  border-color: #0ea5e9;
  background: rgba(14,165,233,0.1);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.input-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 15px;
}

.input-wrap:focus-within .field-icon {
  color: #0ea5e9;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
  transition: all 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.5);
}

.divider {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.portal-links {
  display: flex;
  gap: 10px;
}

.portal-link {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  background: rgba(255,255,255,0.04);
}

.portal-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  text-decoration: none;
}

.portal-link i {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.green-icon i { color: #22c55e; }
.blue-icon i { color: #0ea5e9; }
.red-icon i { color: #ef4444; }
