@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  /* === Kolory z portfolio === */
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --jet: hsl(0, 0%, 22%);
  --blue-accent: hsl(199, 77%, 74%);
  --blue-accent-light: hsl(199, 77%, 84%);
  --white: hsl(0, 0%, 100%);
  --light-gray: hsl(0, 0%, 84%);
  --radius: 16px;
  --transition: 0.3s ease;
  --ff: 'Poppins', sans-serif;
  --shadow-glass: 0 4px 25px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--ff);
  color: var(--white);
  background: linear-gradient(135deg, hsl(240, 2%, 12%) 0%, hsl(240, 2%, 8%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--bg-gradient-yellow-1), var(--orange-yellow-crayola));
  color: #fff;
  font-weight: var(--fw-600);
  font-size: var(--fs-6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.12s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.form-btn:hover,
.form-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  opacity: 0.98;
}

.form-btn ion-icon {
  font-size: 18px;
}

.login-box {
  width: 350px;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.6s ease forwards;
}

.login-box h2 {
  margin-bottom: 25px;
  color: var(--blue-accent-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
}

.login-box label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--light-gray);
}

.login-box input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--jet);
  background-color: var(--eerie-black-1);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}

.login-box input[type="password"]:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 6px var(--blue-accent);
}

.form-btn {
  margin-top: 18px;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-accent-light));
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  padding: 12px 0;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.form-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(80, 200, 255, 0.4);
}

.error {
  color: #ff5c5c;
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}