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

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images.jpeg') center center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for readability */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(30, 0, 60, 0.45);
  pointer-events: none;
  z-index: 0;
}

body::after { content: none; }

/* CARD */
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(80, 0, 160, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
  max-width: 580px;
  width: 95%;
  animation: fadeUp 0.6s ease;
}

/* IMAGE – portreta iegarens pa kreisi */
.image-wrap {
  flex-shrink: 0;
  width: 210px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Blur fade pa malām */
.image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  transparent 55%, rgba(255,255,255,0.18) 80%, rgba(255,255,255,0.55) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.35) 0%, transparent 18%, transparent 82%, rgba(255,255,255,0.35) 100%),
    linear-gradient(to left,   transparent 85%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* FORM SIDE – labā puse ar padding */
.form-side {
  flex: 1;
  padding: 42px 36px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(100,0,150,0.2);
}

.field { margin-bottom: 14px; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.input-wrap { position: relative; }

input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  font-size: 13.5px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

input::placeholder { color: rgba(255,255,255,0.5); }

input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.28);
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.input-icon.clickable {
  cursor: pointer;
  pointer-events: all;
}

.btn-login {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #e879f9, #a855f7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.6);
}

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

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.links a {
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.links a:hover { color: #fff; }

/* Sparkles */
.sparkle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: sparkleAnim 3s ease-in-out infinite;
}

@keyframes sparkleAnim {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); }
}
