/* =========================================================
   TORANO - fixforallnew.css
   File vá CSS mới, không sửa các file CSS cũ.
   ========================================================= */

/* ---------- Đăng nhập / Đăng ký bằng Google & Facebook ---------- */
/* Khối nút nằm ngay dưới dòng chào, phía trên form email */
.auth-social {
  margin: 4px 0 18px;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--slate, #5A636E);
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line, #DCDEE2);
}

.auth-social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 400px) {
  .auth-social-btns {
    grid-template-columns: 1fr;
  }
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auth-social-btn svg {
  flex-shrink: 0;
}

.auth-social-google {
  background: #fff;
  color: var(--ink, #16181C);
  border: 1px solid var(--line, #DCDEE2);
}

.auth-social-google:hover {
  border-color: #9CA3AF;
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.auth-social-facebook {
  background: #1877F2;
  color: #fff;
  border: 1px solid #1877F2;
}

.auth-social-facebook:hover {
  background: #166FE5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.auth-social-btn:active {
  transform: translateY(0);
}

#google-one-tap-login:empty {
  display: none;
}

/* ---------- Chọn hình thức Đăng nhập / Đăng ký: Email hoặc Số điện thoại ---------- */
/* Nút chuyển dạng segmented, cùng tông với .auth-tabs nhưng gọn hơn */
.auth-method {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.auth-method-opt {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.auth-method-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-method-opt span {
  display: block;
  height: 40px;
  line-height: 38px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
  background: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.auth-method-opt:hover span {
  color: #111827;
  border-color: #9CA3AF;
}

.auth-method-opt input:checked + span {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.auth-method-opt input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}

/* Thông báo lỗi / trạng thái của form số điện thoại */
.auth-phone-msg {
  margin: -4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #B91C1C;
}
