/* 
  HD-INOX Login/Register Page Specific Styles (dang-nhap.css)
*/

body.auth-page {
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  padding: 40px 0;
}

.login-container {
  display: flex;
  width: 1000px;
  max-width: 90%;
  height: 750px;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: auto;
}

.login-left {
  flex: 1;
  background-image: url("../images/login-bg.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.login-left::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Subtle dark overlay */
}

.login-right {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-align: center;
  padding-bottom: 10px;
}

.social-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 6px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f1f3f5;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.divider {
  text-align: center;
  margin-bottom: 25px;
  font-size: 12px;
  color: #999;
  position: relative;
}
.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #eee;
}
.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row .form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #555;
}
.form-input-wrap {
  position: relative;
}
.form-input {
  width: 100%;
  padding: 12px 12px 12px 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.form-input.no-icon {
  padding-left: 12px;
}
.form-input:focus {
  border-color: var(--blue-primary);
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-primary);
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-primary);
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}
.auth-footer a {
  color: var(--blue-primary);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body.auth-page {
    height: auto;
    padding: 20px 0;
    align-items: flex-start;
  }

  .login-container {
    flex-direction: column;
    height: auto;
    min-height: unset;
    width: 95%;
    margin: 0 auto;
  }

  .login-left {
    display: none; /* Hide blue side on mobile */
  }

  .login-right {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }

  .social-btns {
    flex-direction: column;
    gap: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .btn-submit {
    padding: 12px;
  }
}
