:root {
  --primary: #01adbb;
  --primary-dark: #008a96;
  --background: #fffffe;
  --text: #002429;
  --text-light: #4a5f66;
  --border: rgba(0, 36, 41, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", Arial, sans-serif;
}

body.login-page,
body.register-page {
  background: linear-gradient(135deg, #01adbb 0%, #008a96 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.login-page::before,
body.register-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.login-page > .navbar,
body.register-page > .navbar {
  position: relative;
  z-index: 1;
}

body.login-page > main,
body.register-page > main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

body.login-page > .site-footer,
body.register-page > .site-footer {
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 400px;
  min-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 36, 41, 0.15);
  padding: 40px 32px;
  position: relative;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 173, 187, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23002429' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.input-wrapper:focus-within i {
  color: var(--primary);
}

input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-options {
  text-align: right;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.form-options a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.form-options a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--background);
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(1, 173, 187, 0.25);
  margin-bottom: 24px;
}

.btn-submit:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(1, 173, 187, 0.35);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.form-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  body.login-page > main {
    padding: 20px 16px;
  }

  .login-card {
    padding: 32px 24px;
  }
}
