/* =========================================
   КІНОПОРТАЛ — Сторінка входу (mobile-first)
   Оновлено: 2025-10-24
========================================= */

:root{
  --bg: linear-gradient(90deg, #f4f4f4, #e0e7ff);
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #3498db;
  --brand-2: #87CEEB;
  --brand-hover: #2980b9;
  --danger: #c0392b;
  --success: #27ae60;
  --radius: 16px;
  --border: #e5e7eb;
  --shadow: 0 10px 24px rgba(0,0,0,.15);
  --shadow-soft: 0 6px 14px rgba(0,0,0,.10);
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

/* Головний блок */
.login-main{
  min-height: calc(100vh - 160px); /* з урахуванням хедера/футера */
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 24px);
}

/* Контейнер форми */
.login-container{
  width: min(480px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}

.login-title{
  margin: 0 0 10px 0;
  font-size: clamp(22px, 4.6vw, 28px);
  line-height: 1.2;
  text-align: center;
}

.alert{
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  font-size: 14px;
}
.alert.success{
  color: #0f5132;
  background: #e7f7e7;
  border-color: #c8e6c9;
}
.alert.error{
  color: #842029;
  background: #f7e7e7;
  border-color: #f5c2c7;
}

/* Форма */
.login-form{
  display: grid;
  gap: 14px;
}
.form-group{
  display: grid;
  gap: 8px;
}
.form-group label{
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.form-group input[type="email"],
.form-group input[type="password"]{
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #87CEEB;
  background: #f9fafb;
  color: #111827;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-group input::placeholder{ color: #9ca3af; }
.form-group input:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(52,152,219,.15);
  background: #fff;
}

/* Кнопка */
.login-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px rgba(52,152,219,.25);
  transition: transform .08s ease-in-out, filter .2s ease, box-shadow .2s ease;
}
.login-button:hover{
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 10px 22px rgba(52,152,219,.35);
}
.login-button:active{ transform: translateY(0.5px); }

/* Забув пароль */
.forgot-password{
  text-align: center;
  margin: 8px 0 0;
}
.forgot-password a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.forgot-password a:hover{ text-decoration: underline; }

/* Дрібні адаптивні правки */
@media (max-width: 400px){
  .login-container{ padding: 16px; border-radius: 14px; }
  .login-button{ min-height: 44px; }
}
