:root {
  --bg-dark: #1c1b24;
  --text-dark: #faf3e0;
  --primary-dark: #ff6d6d;
  --secondary-dark: #ffd6a5;

  --bg-light: #ffffff;
  --text-light: #333333;
  --primary-light: #ffb347;
  --secondary-light: #ffeecc;
}

/* Smooth transition for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

body.light-theme {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.container {
  max-width: 400px;
  width: 100%;
  background-color: transparent;
  padding: 2rem;
  border-radius: 12px;
  box-sizing: border-box;
}

body.light-theme .container {
  background-color: transparent;
  color: var(--text-light);
}

.controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.icon-btn,
#toggleTheme {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

#toggleTheme:hover {
  color: var(--primary-dark);
}

#langSwitcher {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: var(--bg-light);
  color: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Theme language switcher */
body:not(.light-theme) #langSwitcher {
  background-color: #2a2735;
  color: var(--text-dark);
  border-color: #444;
}

/* Light Theme language switcher */
body.light-theme #langSwitcher {
  background-color: #fff;
  color: #333;
  border-color: #ccc;
}

#langSwitcher:hover {
  border-color: var(--primary-dark);
}

.logo-container {
  text-align: center;
  margin-bottom: 1rem;
}

.logo {
  height: 200px;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  box-sizing: border-box;
}

body:not(.light-theme) .input-group input {
  background-color: #2a2735;
  color: var(--text-dark);
}

body.light-theme .input-group input {
  background-color: #f8f3ea;
  color: var(--text-light);
  border: 1px solid #ccc;
}

.input-group .icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-dark);
  font-size: 1.2rem;
  pointer-events: none;
}

body.light-theme .input-group .icon {
  color: var(--primary-light);
}

.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
}

.btn {
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary-dark));
  color: var(--text-dark);
}

.btn:hover,
.btn:focus {
  background: linear-gradient(90deg, #ff5454, #ffbc7d);
  outline: none;
}

body.light-theme .btn {
  background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
  color: var(--text-light);
}

body.light-theme .btn:hover,
body.light-theme .btn:focus {
  background: linear-gradient(90deg, #ffa500, #ffddb3);
}

.signup-text {
  text-align: center;
  margin-top: 1.5rem;
}

.signup-text a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}

body.light-theme form label,
body.light-theme h1,
body.light-theme .signup-text,
body.light-theme .checkbox-label {
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 1.5rem;
  }
}
