:root {
  --primary-color: #233d3d;
  --secondary-color: #298e8e;
  --accent-color: #31ebb5;
  --background: #f0f5f3;
  --card-bg: #ffffff;
  --border-color: #d4deda;
  --text-primary: #233d3d;
  --text-secondary: #515756;
  --hover-bg: #e5ecea;
  --error-color: #e74c3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.lang-bar {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 2rem;
}
.lang-bar a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 4px;
}
.lang-bar a.active {
  background: var(--card-bg);
  color: var(--secondary-color);
}
.lang-bar a:hover { background: var(--hover-bg); }

.shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 24px rgba(35, 61, 61, .06);
}

.brand {
  text-align: center;
  margin-bottom: 2rem;
}
.brand .logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--primary-color);
}
.brand .subtitle {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-top: .25rem;
}

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: var(--primary-color);
  text-align: center;
}

label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  margin: 1rem 0 .4rem;
  color: var(--text-primary);
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(41, 142, 142, .15);
}

button.primary {
  width: 100%;
  margin-top: 1.75rem;
  padding: .8rem 1rem;
  background: var(--secondary-color);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
button.primary:hover { background: #1f7575; }

.error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #8b1f17;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .8rem;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .login-card { padding: 1.75rem 1.25rem; }
  .lang-bar { padding: .75rem 1rem; }
}
