:root {
  /* COLORS */
  --bg-color: #f7f9fa;
  /* Very clean, light ivory/grey background */
  --surface-color-light: #ffffff;
  --surface-color-dark: #e8ecf1;
  --text-main: #2c3e50;
  /* Dark blue-grey for extreme readability */
  --text-muted: #7f8c8d;

  /* Pastel Accents */
  --accent-primary: #a3d2ca;
  /* Minty pastel */
  --accent-primary-hover: #8fc7be;
  --accent-secondary: #ffcfdf;
  /* Soft pink */
  --accent-border: #dfe6e9;
  /* Light border */

  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 20px 40px rgba(44, 62, 80, 0.12);

  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', 'Roboto', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  margin: 0;
  padding: 0;
  /* Soft pastel overlay over the detailed modern background */
  background:
    linear-gradient(rgba(247, 249, 250, 0.80), rgba(247, 249, 250, 0.90)),
    url('../img/bg_login.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Remove old effect wrappers but keep layout structural */
.container,
.container-small {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-small {
  box-shadow: none;
  background: transparent;
}

.effect {
  transform: none;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
}

.sign-formik {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--text-main);
  width: 90%;
  max-width: 420px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: none;
  -webkit-transform: none;
  -moz-transform: none;
  -ms-transform: none;
  -o-transform: none;
}

.sign-formik h1,
.sign-formik h2 {
  margin-bottom: 24px;
  color: var(--text-main);
  font-weight: 600;
}

.sign-formik form {
  width: 100%;
}

.sign-formik form table {
  width: 100%;
}

.sign-formik form table th {
  text-align: left;
  padding-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  /* Stacking label above input */
}

.sign-formik form table td {
  padding-bottom: 16px;
  display: block;
  width: 100%;
}

/* Specific Nette inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--surface-color-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(163, 210, 202, 0.2);
}

input[type="submit"] {
  width: 100%;
  margin-top: 16px;
  background-color: var(--accent-primary);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: block;
}

input[type="submit"]:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.flash {
  width: 100%;
  background-color: #ffcfdf;
  color: #a31941;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 600px) {
  .sign-formik {
    width: 90vw;
    height: auto;
    padding: 32px 24px;
  }
}