/* Σελίδα υποδοχής / σύνδεσης — GNPC Enterprise CRM */

.login-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
  background: #eef2ff;
  overflow-x: hidden;
}

.login-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% 20%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(0, 95, 170, 0.18), transparent 50%),
    linear-gradient(155deg, #f0f7ff 0%, #e8eef9 45%, #f8fafc 100%);
  pointer-events: none;
}

.login-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23005faa' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.login-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.login-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-topbar-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #0369a1, #005faa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 95, 170, 0.35);
}

.login-topbar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.login-topbar-sub {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.login-topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0369a1, #005faa);
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 95, 170, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.login-topbar-login .material-symbols-outlined {
  font-size: 1.15rem;
}

.login-topbar-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 95, 170, 0.4);
  color: #fff;
}

.login-topbar-login:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.login-shell {
  position: relative;
  z-index: 10;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.login-shell--landing {
  max-width: 52rem;
}

@media (min-width: 1024px) {
  .login-shell--landing {
    min-height: calc(100vh - 5rem);
    padding-bottom: 3rem;
  }
}

/* Modal σύνδεσης — compact (max-w-sm) + ομαλή εμφάνιση */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.login-modal.is-open .login-modal-backdrop {
  opacity: 1;
}

.login-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22rem;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  filter: blur(4px);
  transition:
    transform 0.42s cubic-bezier(0.22, 1.12, 0.36, 1),
    opacity 0.32s ease,
    filter 0.32s ease;
}

.login-modal.is-open .login-modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.login-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.login-modal-close .material-symbols-outlined {
  font-size: 1.15rem;
}

.login-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

.login-modal .login-panel {
  margin: 0;
  padding: 1.5rem 1.25rem 1.15rem;
  padding-top: 1.85rem;
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 20px 50px -12px rgba(0, 95, 170, 0.28),
    0 8px 24px rgba(15, 23, 42, 0.12);
}

.login-modal .login-panel-head {
  margin-bottom: 1rem;
}

.login-modal .login-panel-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 95, 170, 0.3);
}

.login-modal .login-panel-icon .material-symbols-outlined {
  font-size: 1.5rem !important;
}

.login-modal .login-panel-head h2 {
  font-size: 1.125rem;
}

.login-modal .login-panel-head p {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.login-modal .login-alert {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
}

.login-modal .login-field {
  margin-bottom: 0.75rem;
}

.login-modal .login-field label {
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

.login-modal .login-field input {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.65rem;
}

.login-modal .login-field-hint {
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

.login-modal .login-submit {
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 95, 170, 0.32);
}

.login-modal .login-submit .material-symbols-outlined {
  font-size: 1.15rem !important;
}

.login-modal .login-panel-foot {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  font-size: 0.65rem;
  line-height: 1.45;
}

body.login-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .login-modal,
  .login-modal-backdrop,
  .login-modal-dialog {
    transition: none;
  }
  .login-modal-dialog {
    filter: none;
    transform: none;
  }
}

.login-hero {
  padding: 0.5rem 0;
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 95, 170, 0.1);
  border: 1px solid rgba(0, 95, 170, 0.2);
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.login-hero h1 span {
  background: linear-gradient(120deg, #0369a1, #005faa 55%, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-hero-lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  max-width: 36rem;
}

.login-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.login-feature {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1rem;
  padding: 1rem;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 95, 170, 0.12);
}

.login-feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.login-feature-icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.login-feature-icon--teal {
  background: #ccfbf1;
  color: #0f766e;
}
.login-feature-icon--violet {
  background: #ede9fe;
  color: #6d28d9;
}
.login-feature-icon--amber {
  background: #fef3c7;
  color: #b45309;
}

.login-feature h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.login-feature p {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #64748b;
}

.login-visual-orbit {
  position: relative;
  margin-top: 2rem;
  height: 7rem;
  display: none;
}

@media (min-width: 1024px) {
  .login-visual-orbit {
    display: block;
  }
}

.login-orbit-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  animation: login-float 6s ease-in-out infinite;
}

.login-orbit-card:nth-child(1) {
  left: 0;
  top: 0;
  animation-delay: 0s;
}
.login-orbit-card:nth-child(2) {
  left: 38%;
  top: 2.5rem;
  animation-delay: 1.2s;
}
.login-orbit-card:nth-child(3) {
  right: 0;
  top: 0.5rem;
  animation-delay: 2.4s;
}

@keyframes login-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.login-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(12px);
}

@media (min-width: 640px) {
  .login-panel {
    padding: 2rem 2rem 1.75rem;
  }
}

.login-panel-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-panel-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  background: linear-gradient(145deg, #0ea5e9, #005faa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 95, 170, 0.35);
}

.login-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-panel-head p {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.login-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.45;
}

.login-alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.login-alert--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.login-field {
  margin-bottom: 1.1rem;
}

.login-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.login-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-field input:focus {
  outline: none;
  border-color: #005faa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 95, 170, 0.18);
}

.login-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
}

.login-submit {
  width: 100%;
  border: none;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #0284c7, #005faa);
  box-shadow: 0 8px 20px rgba(0, 95, 170, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 95, 170, 0.4);
}

.login-submit:active {
  transform: translateY(0);
}

.login-panel-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.5;
}
