﻿/* ==========================================
   ACCOUNT TOP
========================================== */

.accountTop {
  position: absolute;
  right: 60px;
  top: 7px;
  z-index: 1001;
}

.accountTop .icon {
  height: 38px;
  min-width: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ececec;
  transition: all 0.25s ease;
}

.accountTop .icon:hover,
.accountTop.account-open .icon {
  background: #f2921d;
  border-color: #f2921d;
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 146, 29, 0.25);
}

.accountTop .icon.ok::before {
  display: none;
}

.accountTop .icon .img {
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

.accountTop .icon .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accountTop .icon .t1 {
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* popup */

.accountTop .popup {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
  overflow: hidden;
  display: none;
  animation: accountFade 0.2s ease;
}

@keyframes accountFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accountTop.account-open .popup {
  display: block;
}

/* user */

.accountTop .user {
  padding: 10px 18px;
  background: linear-gradient(135deg, #f2921d, #ffb95e);
  color: #fff;
}

.accountTop .user .name {
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}

/* menu */

.accountTop .list ul,
.accountTop .listNot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.accountTop .list li,
.accountTop .listNot li {
  border-bottom: 1px solid #f2f2f2;
  padding: 5px 0;
}

.accountTop .list li:last-child,
.accountTop .listNot li:last-child {
  border-bottom: none;
}

.accountTop .list a,
.accountTop .listNot a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  line-height: normal;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.accountTop .list a:hover,
.accountTop .listNot a:hover {
  background: #fff8ef;
  color: #f2921d;
}

.accountTop .list i {
  width: 18px;
  text-align: center;
}

.accountTop .icon::before {
  content: "\f007";
  font-family: "Font Awesome 5 Free";
  font-size: 18px;
}
/* logout */

.accountTop .logout {
  padding: 15px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.accountTop .logout a {
  display: block;
  text-align: center;
  background: #f44336;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s;
  line-height: normal;
}

.accountTop .logout a:hover {
  opacity: 0.9;
}

/* login/register */

.accountTop .listNot {
  padding: 18px;
}

.accountTop .listNot a {
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f5f5f5;
  font-weight: 600;
}

.accountTop .listNot a.v2 {
  background: #f2921d;
  color: #fff;
}

.accountTop .listNot a:last-child {
  margin-bottom: 0;
}

/* mobile */

@media (max-width: 768px) {
  .accountTop {
    right: 60px;
    top: 1px;
  }

  .accountTop .icon {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .accountTop .icon .t1,
  .accountTop .icon .img {
    display: none;
  }

  .accountTop .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    right: auto;
    z-index: 99999;
  }
}

/* ==========================================
   LOGIN PAGE
========================================== */

.box_mid {
  max-width: 520px;
  margin: 40px auto;
}

.boxAccount {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* form */

.boxAccount .form-acc {
  width: 100%;
}

.boxAccount .form-group {
  margin-bottom: 22px;
}

.boxAccount label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.boxAccount label span {
  color: #e53935;
}

/* input */

.boxAccount .col-input {
  position: relative;
}

.boxAccount input[type="text"],
.boxAccount input[type="password"] {
  width: 100%;
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0 15px;
  font-size: 15px;
  transition: 0.25s;
  background: #fff;
}

.boxAccount input[type="text"]:focus,
.boxAccount input[type="password"]:focus {
  border-color: #f2921d;
  box-shadow: 0 0 0 4px rgba(242, 146, 29, 0.12);
}

/* checkbox */

.boxAccount .checkbox {
  margin-bottom: 25px;
}

.boxAccount .checkbox label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.boxAccount .checkbox input {
  width: 16px;
  height: 16px;
}

.boxAccount .checkbox a {
  color: #f2921d;
  font-weight: 600;
}

.boxAccount .checkbox a:hover {
  text-decoration: underline;
}

/* button */

.boxAccount button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: #f2921d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.boxAccount button:hover {
  background: #df810d;
  transform: translateY(-2px);
}

.boxAccount button:active {
  transform: translateY(0);
}

/* register */

.boxAccount .cta-ft {
  margin-top: 18px;
  text-align: center;
}

.boxAccount .cta-ft a {
  display: inline-block;
  color: #f2921d;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s;
}

.boxAccount .cta-ft a:hover {
  color: #c96f00;
}

.boxAccount .cta-ft a:before {
  content: "Chưa có tài khoản? ";
  color: #666;
  font-weight: 400;
}

/* separator */

.boxAccount .cta-ft {
  position: relative;
  padding-top: 20px;
}

.boxAccount .cta-ft:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #eee;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .box_mid {
    margin: 20px auto;
  }

  .boxAccount {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .boxAccount:before {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 20px;
  }

  .boxAccount input[type="text"],
  .boxAccount input[type="password"] {
    height: 48px;
    font-size: 14px;
  }

  .boxAccount button {
    height: 50px;
    font-size: 15px;
  }

  .boxAccount .checkbox label {
    font-size: 13px;
  }

  .boxAccount .cta-ft a {
    font-size: 13px;
  }
}

/* ==========================================
   ACCOUNT PAGE
========================================== */

.boxMember {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ==========================================
   TAB MENU
========================================== */

.menuTab-acc {
  margin-bottom: 25px;
}

.menuTab-acc .content ul {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menuTab-acc .content li {
  flex: 1;
}

.menuTab-acc .content li a {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ececec;
  color: #444;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.menuTab-acc .content li:hover a {
  border-color: #f2921d;
  color: #f2921d;
}

.menuTab-acc .content li.current a {
  background: #f2921d;
  border-color: #f2921d;
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 146, 29, 0.25);
}

/* ==========================================
   FORM
========================================== */

.boxMember .boxWrap {
  padding: 30px;
}

.boxMember .form-group {
  margin-bottom: 22px;
}

.boxMember label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.boxMember label span {
  color: #e53935;
}

.boxMember input[type="text"],
.boxMember input[type="email"],
.boxMember input[type="password"],
.boxMember select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  transition: all 0.25s ease;
}

.boxMember input:focus,
.boxMember select:focus {
  outline: none;
  border-color: #f2921d;
  box-shadow: 0 0 0 4px rgba(242, 146, 29, 0.12);
}

.boxMember input[readonly] {
  background: #f7f7f7;
  color: #888;
  cursor: not-allowed;
}

/* ==========================================
   DATE
========================================== */

.boxMember .input-group.date {
  display: flex;
  align-items: center;
}

.boxMember .input-group.date input {
  border-radius: 12px 0 0 12px;
}

.boxMember .input-group-addon {
  width: 50px;
  height: 48px;
  border: 1px solid #dcdcdc;
  border-left: none;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  cursor: pointer;
}

/* ==========================================
   BUTTON
========================================== */

.boxMember button {
  min-width: 220px;
  height: 50px;
  border: none;
  border-radius: 12px;
  background: #f2921d;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.boxMember button:hover {
  background: #e5840d;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(242, 146, 29, 0.25);
}

/* ==========================================
   DESKTOP
========================================== */

@media (min-width: 992px) {
  .boxMember .boxWrap {
    padding: 35px;
  }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {
  .menuTab-acc .content ul {
    gap: 8px;
  }

  .menuTab-acc .content li a {
    font-size: 14px;
    padding: 12px 10px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
  .menuTab-acc {
    margin-bottom: 20px;
  }

  .menuTab-acc .content {
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .menuTab-acc .content ul {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
  }

  .menuTab-acc .content li {
    flex: none;
    min-width: 170px;
  }

  .menuTab-acc .content li a {
    white-space: nowrap;
    border-radius: 12px;
  }

  .boxMember .boxWrap {
    padding: 18px;
  }

  .boxMember .form-group {
    margin-bottom: 18px;
  }

  .boxMember button {
    width: 100%;
    min-width: initial;
  }

  .boxMember label {
    font-size: 13px;
  }

  .boxMember input,
  .boxMember select {
    font-size: 14px;
  }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {
  .menuTab-acc .content li {
    min-width: 150px;
  }

  .boxMember .boxWrap {
    padding: 15px;
  }
}
