﻿/* ============================
   Futuristic Minimal Login CSS (SCOPED)
   Scope: .page-login …
   ============================ */

/* Base Reset (scoped) */
.page-login *,
.page-login *::before,
.page-login *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* statt html, body → nur Body mit Klasse */
.page-login {
  margin: 0;
  padding: 0;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(135deg, #0b0f1a 0%, #06080f 60%, #04060b 100%);
  color: #e6e9ef;
  line-height: 1.5;
  letter-spacing: 0.2px;
  overflow-x: hidden;
      background: url(../img/background-one.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Layout */
.page-login .log-in {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
}

.page-login .ornek {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(12, 16, 28, 0.6);
  border: 1px solid rgba(100, 120, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  padding: 28px 24px 20px;
  overflow: hidden;
}

/* Decorative Background Effects */
.page-login .fx-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-login .fx-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      transparent 23px,
      rgba(120, 130, 255, 0.06) 24px
    ),
    linear-gradient(90deg, transparent 23px, rgba(120, 130, 255, 0.06) 24px);
  background-size: 24px 24px, 24px 24px;
  mask-image: radial-gradient(
    ellipse 60% 40% at 50% 30%,
    rgba(0, 0, 0, 0.9),
    transparent 70%
  );
}

.page-login .fx-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.15;
  animation: scan 9s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateY(-10%);
  }
  100% {
    transform: translateY(10%);
  }
}

.page-login .fx-glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  filter: blur(64px);
  opacity: 0.17;
  transform: translate(-10%, -10%) rotate(15deg);
}

.page-login .fx-glow-1 {
  top: -15%;
  left: -15%;
  background: radial-gradient(circle at 30% 30%, #4cc9f0, transparent 60%);
}

.page-login .fx-glow-2 {
  bottom: -20%;
  right: -20%;
  background: radial-gradient(circle at 70% 70%, #7b5cff, transparent 60%);
}

.page-login .fx-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      2px 2px at 20% 30%,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(1px 1px at 40% 60%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(
      1.5px 1.5px at 70% 20%,
      rgba(255, 255, 255, 0.4),
      transparent
    ),
    radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.25;
}

/* Header */
.page-login .ui-header {
  position: relative;
  z-index: 2;
  padding: 6px 4px 14px;
  text-align: center;
}

.page-login .ui-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f2f5ff;
  text-shadow: 0 0 24px rgba(124, 113, 255, 0.25);
}

.page-login .ui-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #aeb6cc;
}

/* Frame (Clickable submit) */
.page-login .frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(121, 137, 255, 0.25);
  background: linear-gradient(
    180deg,
    rgba(20, 26, 46, 0.7),
    rgba(14, 18, 32, 0.7)
  );
  box-shadow: 0 6px 20px rgba(40, 60, 130, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  user-select: none;
  margin: 10px 0 18px;
}

.page-login .frame:hover {
  transform: translateY(-1px);
  border-color: rgba(149, 164, 255, 0.45);
  box-shadow: 0 12px 26px rgba(70, 90, 180, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.page-login .frame:active {
  transform: translateY(0);
}

.page-login .frame .text-wrapper {
  font-weight: 600;
  font-size: 15px;
  color: #e9ecff;
  letter-spacing: 0.3px;
}

.page-login .frame .group {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    100% 100% at 50% 0%,
    rgba(160, 172, 255, 0.25),
    rgba(120, 132, 255, 0.1)
  );
  border: 1px solid rgba(149, 164, 255, 0.35);
  box-shadow: inset 0 0 12px rgba(120, 130, 255, 0.25);
}

.page-login .frame .user {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(120, 130, 255, 0.55));
  opacity: 0.95;
}

.page-login .frame-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Form Card */
.page-login .form-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  padding: 14px 4px 2px;
}

/* Input Groups */
.page-login .overlap-group-wrapper {
  display: grid;
  gap: 8px;
}
.page-login .overlap-group {
  position: relative;
}
.page-login .div-wrapper {
  position: relative;
  display: block;
}

.page-login .input-field.div,
.page-login .div {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(130, 146, 255, 0.25);
  background: linear-gradient(
    180deg,
    rgba(15, 18, 32, 0.85),
    rgba(12, 15, 26, 0.85)
  );
  color: #e6ebff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  caret-color: #8ea2ff;
}

.page-login .div::placeholder {
  color: #9aa6c7;
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.page-login .div:focus {
  border-color: rgba(158, 172, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(140, 160, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: linear-gradient(
    180deg,
    rgba(18, 22, 38, 0.88),
    rgba(14, 18, 32, 0.88)
  );
}

/* Floating Label */
.page-login .input-label.text-wrapper-2 {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 6px;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #c4ccff;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 22, 0.95),
    rgba(8, 10, 18, 0.95)
  );
  border-radius: 8px;
  border: 1px solid rgba(135, 150, 255, 0.35);
  box-shadow: 0 2px 8px rgba(60, 80, 170, 0.25);
}

/* Errors */
.page-login .text-danger {
  color: #ff6b7a;
  font-size: 12.5px;
}

.page-login .global-error {
  background: rgba(255, 70, 94, 0.08);
  border: 1px solid rgba(255, 90, 110, 0.35);
  padding: 10px 12px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.page-login .input-error {
  display: block;
  margin-top: 6px;
  padding-left: 4px;
}

/* Form Row */
.page-login .fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.page-login .fx-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c5cbe6;
  cursor: pointer;
  user-select: none;
}

.page-login .fx-check input {
  width: 16px;
  height: 16px;
  accent-color: #7e8dff;
}

.page-login .fx-link {
  color: #aeb8ff;
  text-decoration: none;
  font-size: 13px;
  position: relative;
}

.page-login .fx-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(170, 180, 255, 0),
    rgba(170, 180, 255, 0.8),
    rgba(170, 180, 255, 0)
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.page-login .fx-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.page-login .actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.page-login .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(150, 170, 255, 0.55);
  background: linear-gradient(
      180deg,
      rgba(114, 132, 255, 0.35),
      rgba(114, 132, 255, 0.15)
    ),
    linear-gradient(180deg, rgba(18, 24, 42, 0.95), rgba(14, 18, 32, 0.95));
  color: #f2f4ff;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(80, 110, 220, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-login .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(90, 120, 240, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-color: rgba(170, 190, 255, 0.8);
}

.page-login .btn-primary:active {
  transform: translateY(0);
}

.page-login .btn-icon {
  display: inline-block;
  margin-left: 2px;
}

/* Ghost Buttons */
.page-login .alt-actions {
  grid-template-columns: 1fr 1fr;
}

.page-login .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px dashed rgba(150, 160, 220, 0.35);
  background: linear-gradient(
    180deg,
    rgba(16, 20, 36, 0.75),
    rgba(12, 16, 28, 0.75)
  );
  color: #cfd6ff;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-login .btn-ghost:hover {
  border-color: rgba(170, 185, 255, 0.75);
  color: #e8ecff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(80, 110, 220, 0.22);
}

.page-login .btn-ghost:active {
  transform: translateY(0);
}

/* Divider */
.page-login .fx-divider {
  display: grid;
  place-items: center;
  margin: 6px 0 2px;
  height: 28px;
  position: relative;
}

.page-login .fx-divider::before,
.page-login .fx-divider::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 44%;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(130, 140, 200, 0),
    rgba(130, 140, 200, 0.6),
    rgba(130, 140, 200, 0)
  );
}

.page-login .fx-divider::before {
  left: 0;
}
.page-login .fx-divider::after {
  right: 0;
}

.page-login .fx-divider span {
  font-size: 12px;
  color: #a7b0cf;
  letter-spacing: 0.3px;
}

/* Legal & Note */
.page-login .ui-legal {
  margin-top: 8px;
  text-align: center;
}
.page-login .muted {
  color: #9aa4c7;
  font-size: 12.5px;
}
.page-login .ui-note {
  margin-top: 8px;
  text-align: center;
  color: #aab2d6;
}

/* Corner Frames */
.page-login .fx-frame {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(140, 155, 255, 0.25);
  opacity: 0.35;
  pointer-events: none;
}

.page-login .fx-top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
  border-radius: 12px 0 0 0;
}
.page-login .fx-top-right {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 12px 0 0;
}
.page-login .fx-bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 12px;
}
.page-login .fx-bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 12px 0;
}

/* Focus Ring */
.page-login .frame:focus,
.page-login .btn-primary:focus,
.page-login .btn-ghost:focus,
.page-login .fx-link:focus,
.page-login .div:focus {
  outline: 2px solid rgba(140, 160, 255, 0.65);
  outline-offset: 2px;
}

/* Scrollbar (nur auf Login-Body) */
.page-login::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.page-login *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.page-login::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5568cc, #3e52b8);
  border-radius: 10px;
  border: 2px solid #0a0f1e;
}
.page-login *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5568cc, #3e52b8);
  border-radius: 10px;
  border: 2px solid #0a0f1e;
}

.page-login::-webkit-scrollbar-track {
  background: #0a0f1e;
}
.page-login *::-webkit-scrollbar-track {
  background: #0a0f1e;
}

/* Responsive */
@media (max-width: 520px) {
  .page-login .ornek {
    padding: 22px 18px 16px;
    border-radius: 16px;
  }
  .page-login .ui-title {
    font-size: 24px;
  }
  .page-login .alt-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .page-login .ornek {
    max-width: 520px;
  }
}

/* Micro Interactions */
.page-login .div:hover {
  border-color: rgba(150, 165, 255, 0.45);
}
.page-login .input-field.div:invalid {
  border-color: rgba(255, 110, 130, 0.6);
}
.page-login .input-field.div:valid {
  border-color: rgba(130, 200, 160, 0.35);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-login * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Additional glow on hover */
.page-login .frame:hover .group,
.page-login .btn-ghost:hover,
.page-login .btn-primary:hover {
  filter: drop-shadow(0 0 8px rgba(120, 130, 255, 0.25));
}

/* Subtle overlays */
.page-login .ornek::before,
.page-login .ornek::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.page-login .ornek::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.035) 70%,
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.page-login .ornek::after {
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 40px rgba(80, 100, 200, 0.12);
}

/* Hover pulse for links */
.page-login .fx-link:hover {
  text-shadow: 0 0 12px rgba(150, 170, 255, 0.35);
}

/* Neon caret blink (unused but kept) */
@keyframes caret {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(140, 160, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 rgba(140, 160, 255, 0.2);
  }
}

/* Images */
.page-login img {
  max-inline-size: 100%;
  block-size: auto;
  display: inline-block;
}
