:root {
  --color-bg: #f0f6fb;
  --color-primary: #0f4c75;
  --color-primary-soft: #3282b8;
  --color-mint: #3fd3c7;
  --color-accent-green: #8fd694;
  --color-card-bg: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-error: #dc2626;
  --color-warning: #f97316;
  --shadow-soft: 0 20px 45px rgba(15, 76, 117, 0.15);
  --radius-lg: 16px;
  --radius-xl: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e0f7fa, #f0f6fb);
  color: var(--color-text-main);
}

/* Layout */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  align-items: center;
  padding: 32px clamp(24px, 6vw, 64px);
  gap: clamp(24px, 5vw, 48px);
}

/* Ilustracija lijevo */

.login-illustration {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-blob {
  position: absolute;
  inset: 10% 8% 5% 0;
  background: radial-gradient(circle at 20% 0%, rgba(63,211,199,0.8), transparent 60%),
              radial-gradient(circle at 60% 100%, rgba(50,130,184,0.9), transparent 55%);
  filter: blur(4px);
  opacity: 0.9;
}

.login-hero {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  padding: 26px 26px;
  box-shadow: var(--shadow-soft);
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.login-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #3fd3c7, #3282b8, #8fd694, #3fd3c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 32px;
  margin-bottom: 14px;
}

.login-hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.login-hero p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.login-hero ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-main);
}

.login-hero li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-hero li i {
  color: var(--color-mint);
}

/* Login kartica desno */

.login-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-xl);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-soft);
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.login-card-header h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.login-card-header p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* Alerti */

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 10px;
}

.login-alert i {
  margin-top: 2px;
}

.login-alert--error {
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.login-alert--warning {
  background: rgba(249, 115, 22, 0.06);
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Form */

.login-form {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.input-wrapper input {
  width: 100%;
  padding: 10px 10px 10px 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: rgba(255, 255, 255, 0.9);
}

.input-wrapper input:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 1px rgba(50, 130, 184, 0.4);
  background: #ffffff;
}

.input-wrapper input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button */

.btn-login {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 76, 117, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.btn-login i {
  font-size: 14px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(15, 76, 117, 0.4);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(15, 76, 117, 0.33);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hint */

.login-hint {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  color: var(--color-text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .login-illustration {
    display: none;
  }

  .login-card {
    max-width: 100%;
  }
}
