/* ===========================================================
   auth.css - Sajber Radar
   Stylesheet for /prijava, /registracija, /profil and related
   public-side authentication pages.
   Marker: AUTH-CSS-2026-05-20
   =========================================================== */

/* ----- Section wrapper ----- */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 80px;
  min-height: calc(100vh - 240px);
}

/* ----- Card ----- */
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Profil card is wider (has more data) */
.profil-card {
  max-width: 720px;
}

/* ----- Titles ----- */
.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 22px 0;
}

/* ----- Form layout ----- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.2px;
}

.auth-field .req {
  color: #f87171;
  margin-left: 2px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="tel"],
.auth-field input[type="url"],
.auth-field textarea,
.auth-field select {
  width: 100%;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.9);
}

.auth-field input::placeholder {
  color: #64748b;
}

/* Honeypot field - hide from real users */
.auth-field.honeypot,
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ----- Inline error under input ----- */
.auth-error {
  color: #fca5a5;
  font-size: 12.5px;
  margin-top: 2px;
  line-height: 1.4;
}

/* ----- Top-of-form error banner ----- */
.auth-error-banner,
.flash-error {
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  border-radius: 6px;
  padding: 11px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ----- Success banner ----- */
.flash-success {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.40);
  color: #86efac;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ----- Primary button ----- */
.auth-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #022c33;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 6px;
  transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.auth-btn:hover {
  filter: brightness(1.10);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.30);
}

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

.auth-btn:disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
  box-shadow: none;
}

/* ----- Footer link ----- */
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: #94a3b8;
}

.auth-alt a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.4);
  padding-bottom: 1px;
}

.auth-alt a:hover {
  color: #67e8f9;
  border-bottom-color: rgba(103, 232, 249, 0.7);
}

/* ===========================================================
   PROFIL specific
   =========================================================== */

.profil-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: #22d3ee;
  letter-spacing: 0.3px;
}

.profil-section-block {
  margin-top: 24px;
}

.profil-info {
  margin-top: 6px;
}

.profil-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
}

.profil-grid dt {
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.profil-grid dd {
  margin: 0;
  color: #e2e8f0;
  word-break: break-word;
}

.profil-grid .muted {
  color: #64748b;
  font-style: italic;
}

.role-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.40);
  color: #67e8f9;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.profil-divider {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin: 28px 0 4px;
}

/* ===========================================================
   Responsive
   =========================================================== */

@media (max-width: 720px) {
  .auth-section {
    padding: 24px 14px 60px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .profil-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .profil-grid dt {
    margin-top: 10px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .profil-grid dt:first-child {
    margin-top: 0;
  }
  .auth-title {
    font-size: 22px;
  }
}
