:root {
  --card-bg: rgba(12, 20, 31, 0.82);
  --card-border: rgba(255, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #d3d8df;
  --error: #ff9f9f;
  --input-bg: rgba(255, 255, 255, 0.15);
  --input-border: rgba(255, 255, 255, 0.25);
  --button-bg: #1d4ed8;
  --button-bg-hover: #163ca8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background-image: linear-gradient(rgba(5, 9, 15, 0.55), rgba(5, 9, 15, 0.7)), url('../img/bglogin.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.next-logo {
  width: min(440px, 88%);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.38));
}

.form-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.form-card {
  width: min(460px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(5px);
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  color: var(--text-primary);
}

.form-subtitle {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
}

.lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6deea;
  font-size: 13px;
  margin-bottom: 14px;
}

.lang-row a {
  color: #9ec5ff;
  text-decoration: none;
}

.lang-row a.active {
  color: #ffffff;
  font-weight: 600;
}

label {
  display: block;
  margin: 12px 0 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 12px 14px;
}

.input-wrapper i {
  color: #d1d5db;
  width: 20px;
  text-align: center;
}

.input-wrapper input {
  width: 100%;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #c7ced6;
}

.error {
  display: block;
  color: var(--error);
  min-height: 20px;
  margin-top: 4px;
  font-size: 12px;
}

button {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  background: var(--button-bg);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background: var(--button-bg-hover);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 30vh;
    padding-bottom: 8px;
  }

  .next-logo {
    width: min(320px, 72%);
  }

  .form-panel {
    min-height: 70vh;
    padding-top: 8px;
  }
}

@media (max-width: 480px) {
  .form-card {
    padding: 22px;
    border-radius: 14px;
  }

  h1 {
    font-size: 26px;
  }
}
