/* Premium Custom Design for SK Print Portal - Cyber Edition */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --neon-cyan: #00e5ff;
  --neon-purple: #9d4edd;
  --neon-pink: #ff007a;
  --neon-emerald: #10b981;
  --neon-orange: #ff6b35;
  --neon-gold: #ffd700;
  --dark-space: #03050c;
  --glass-bg: rgba(9, 11, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.5);
  --font-outfit: 'Outfit', sans-serif;
  --font-grotesk: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-outfit);
  background-color: var(--dark-space);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== BACKGROUND CANVAS & AURORA ========== */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(130px) saturate(250%);
  opacity: 0.55;
}

.aurora .blob {
  position: absolute;
  border-radius: 50%;
}

.aurora .b1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--neon-cyan) 0%, rgba(0, 229, 255, 0.1) 70%);
  top: -15%;
  left: -15%;
  animation: blobMove1 22s ease-in-out infinite alternate;
}

.aurora .b2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--neon-purple) 0%, rgba(157, 78, 221, 0.1) 70%);
  bottom: -20%;
  right: -10%;
  animation: blobMove2 26s ease-in-out infinite alternate;
}

.aurora .b3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--neon-pink) 0%, rgba(255, 0, 122, 0.1) 70%);
  top: 35%;
  left: 40%;
  animation: blobMove3 20s ease-in-out infinite alternate;
}

@keyframes blobMove1 {
  0% { transform: translate(0,0) scale(1) rotate(0deg); }
  50% { transform: translate(80px,-40px) scale(1.15) rotate(20deg); }
  100% { transform: translate(-30px,50px) scale(0.9) rotate(-15deg); }
}

@keyframes blobMove2 {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px,50px) scale(1.2); }
  100% { transform: translate(40px,-60px) scale(0.85); }
}

@keyframes blobMove3 {
  0% { transform: translate(0,0) scale(1) rotate(0deg); }
  100% { transform: translate(90px,-70px) scale(1.3) rotate(35deg); }
}

/* ========== NOISE & GRID ========== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ========== MOUSE GLOW ========== */
.mouse-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%,-50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* ========== LAYOUT GRID ========== */
.main-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

@media(max-width: 991px) {
  .main-wrap {
    flex-direction: column-reverse;
  }
}

/* ========== LEFT PANEL (BRANDING) ========== */
.panel-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(3, 5, 12, 0.5) 0%, rgba(13, 7, 34, 0.2) 100%);
}

.brand-block {
  position: relative;
  margin-bottom: 3rem;
}

.logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #03050c;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.35), 0 8px 30px rgba(0,0,0,0.5);
  animation: logoFloat 4s ease-in-out infinite;
  position: relative;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.brand-title {
  font-family: var(--font-grotesk);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.brand-title .highlight {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineText 6s linear infinite;
}

@keyframes shineText {
  to { background-position: 200% center; }
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--neon-cyan);
  margin-left: 5px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== SERVICES GRID ========== */
.services-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 2.5rem;
}

@media(max-width: 575px) {
  .services-wrap {
    grid-template-columns: 1fr;
  }
}

.svc-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.02));
  opacity: 0;
  transition: opacity 0.35s;
}

.svc-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.svc-card:hover .svc-icon {
  transform: scale(1.1) rotate(5deg);
}

.svc-card h5 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
  font-family: var(--font-grotesk);
}

.svc-card span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Service-specific coloring using :has() */
.svc-card:has(.gi-cyan):hover { border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 0 15px rgba(0, 229, 255, 0.15); }
.svc-card:has(.gi-orange):hover { border-color: rgba(255, 107, 53, 0.35); box-shadow: 0 0 15px rgba(255, 107, 53, 0.15); }
.svc-card:has(.gi-pink):hover { border-color: rgba(255, 0, 122, 0.35); box-shadow: 0 0 15px rgba(255, 0, 122, 0.15); }
.svc-card:has(.gi-emerald):hover { border-color: rgba(16, 185, 129, 0.35); box-shadow: 0 0 15px rgba(16, 185, 129, 0.15); }
.svc-card:has(.gi-purple):hover { border-color: rgba(157, 78, 221, 0.35); box-shadow: 0 0 15px rgba(157, 78, 221, 0.15); }
.svc-card:has(.gi-gold):hover { border-color: rgba(255, 215, 0, 0.35); box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
.svc-card:has(.gi-indigo):hover { border-color: rgba(79, 70, 229, 0.35); box-shadow: 0 0 15px rgba(79, 70, 229, 0.15); }
.svc-card:has(.gi-rose):hover { border-color: rgba(244, 63, 94, 0.35); box-shadow: 0 0 15px rgba(244, 63, 94, 0.15); }

.gi-cyan { background: linear-gradient(135deg, var(--neon-cyan), #00a4db); color: #000; }
.gi-purple { background: linear-gradient(135deg, var(--neon-purple), #7925c4); color: #fff; }
.gi-pink { background: linear-gradient(135deg, var(--neon-pink), #cf005b); color: #fff; }
.gi-emerald { background: linear-gradient(135deg, var(--neon-emerald), #078058); color: #fff; }
.gi-orange { background: linear-gradient(135deg, var(--neon-orange), #d94914); color: #fff; }
.gi-gold { background: linear-gradient(135deg, var(--neon-gold), #bfa000); color: #000; }
.gi-indigo { background: linear-gradient(135deg, #4f46e5, #312e81); color: #fff; }
.gi-rose { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; }

/* ========== SUPPORT & BUTTONS ========== */
.support-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sup-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: var(--font-grotesk);
  letter-spacing: 0.5px;
}

.sup-btn:hover {
  transform: translateY(-3px);
}

.sup-wa {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.sup-wa:hover {
  background: #25d366;
  color: #03050c;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.sup-tg {
  background: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.3);
  color: #0088cc;
}

.sup-tg:hover {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
}

/* ========== RIGHT PANEL (LOGIN) ========== */
.panel-right {
  flex: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 6%;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 80%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 45px 35px 35px;
  position: relative;
  overflow: hidden;
  animation: cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.04);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

@keyframes cardIn {
  0% { opacity: 0; transform: translateY(50px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.card-heading {
  font-family: var(--font-grotesk);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  color: #fff;
}

.card-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ========== INPUT FIELDS ========== */
.inp-group {
  position: relative;
  margin-bottom: 20px;
}

.inp-group input, .inp-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 16px 20px 16px 48px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: var(--font-outfit) !important;
  outline: none !important;
  transition: all 0.35s !important;
}

.inp-group select {
  appearance: none;
  cursor: pointer;
}

.inp-group select option {
  background: var(--dark-space);
  color: #fff;
}

.inp-group input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.inp-group input:focus, .inp-group select:focus {
  border-color: var(--neon-cyan) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08), 0 0 20px rgba(0, 229, 255, 0.05) !important;
}

.inp-group .inp-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
  transition: all 0.35s;
  z-index: 2;
  pointer-events: none;
}

.inp-group input:focus ~ .inp-icon, .inp-group select:focus ~ .inp-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.pwd-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.3s;
  z-index: 2;
}

.pwd-toggle:hover {
  color: var(--neon-cyan);
}

/* ========== SUBMIT & LINKS ========== */
.btn-login {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  background-size: 200% auto;
  color: #03050c;
  font-family: var(--font-grotesk);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
  margin-top: 6px;
  animation: btnGlowPulse 4s infinite alternate;
}

@keyframes btnGlowPulse {
  0% { box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2); }
  100% { box-shadow: 0 8px 25px rgba(255, 0, 122, 0.3); }
}

.btn-login:hover {
  transform: translateY(-2px);
  background-position: right center;
}

.btn-login:active {
  transform: translateY(0) scale(0.98);
}

.btn-login .btn-text {
  position: relative;
  z-index: 1;
}

.btn-login .btn-arrow {
  display: inline-block;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.btn-login:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-login.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-login.loading .btn-text {
  visibility: hidden;
}

.btn-login.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
}

@keyframes spin { 
  to { transform: rotate(360deg); } 
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 1.8rem 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.divider:not(:empty)::before { margin-right: 1.5em; }
.divider:not(:empty)::after { margin-left: 1.5em; }

.auth-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.auth-row a {
  color: var(--text-muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.auth-row a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.auth-row a i {
  margin-right: 4px;
}

.footer-badge {
  text-align: center;
  margin-top: 2rem;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-badge i {
  color: var(--neon-cyan);
}

.err-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #fca5a5;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
