*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --input-bg: #f7fafc;
  --white: #ffffff;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: var(--text-dark);
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.login-card__brand {
  flex: 1;
  padding: 3rem 2.5rem;
  background: linear-gradient(160deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  opacity: 0.95;
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.brand-description {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 320px;
}

.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  opacity: 0.92;
}

.brand-features li i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.login-card__form {
  flex: 1;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.form-logo img {
  width: 140px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.form-error {
  margin: -1rem 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #c53030;
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 0.9rem;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input::placeholder {
  color: #a0aec0;
}

.input-wrapper input:focus {
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-login:hover {
  opacity: 0.92;
}

.btn-login:active {
  transform: scale(0.99);
}

@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    max-width: 440px;
    min-height: auto;
  }

  .login-card__brand {
    padding: 2rem 1.75rem;
  }

  .login-card__form {
    padding: 2rem 1.75rem;
  }

  .brand-description {
    max-width: none;
  }
}
