/* Loading Overlay */
#login-loading-overlay,
#register-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.loader-content {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #ff416c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#login-loading-overlay p,
#register-loading-overlay p {
  color: #ff4b2b;
  font-weight: 600;
  font-size: 16px;
}

/* Page Layout */
.login-page,
.register-page {
  background: #fff;
  padding: 60px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* Cards */
.login-card,
.register-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.login-card {
  max-width: 480px;
}

.register-card {
  max-width: 700px;
}

.login-card:hover,
.register-card:hover {
  transform: translateY(-5px);
}

/* Headers */
.login-header,
.register-header {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  padding: 40px 30px;
  color: #fff;
  text-align: center;
}

.login-header h1,
.register-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-header p,
.register-header p {
  opacity: 0.9;
  font-size: 15px;
  margin-bottom: 0;
}

.register-header p a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

/* Body */
.login-body,
.register-body {
  padding: 40px;
}

.register-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff416c;
  display: inline-block;
}

/* Form Groups */
.form-group-custom {
  position: relative;
  margin-bottom: 25px;
}

.register-page .form-group-custom {
  margin-bottom: 20px;
}

.form-group-custom i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff4b2b;
  font-size: 18px;
  z-index: 10;
  transition: all 0.3s;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Adjust icon position for registration where fields might be more compact */
.register-page .form-group-custom i {
  top: 25px;
}

.form-control-custom {
  padding: 14px 20px 14px 60px !important;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  transition: all 0.3s;
  font-size: 16px;
  height: auto;
  background: #fff;
  width: 100%;
}

.register-page .form-control-custom {
  padding: 12px 20px 12px 55px !important;
  font-size: 15px;
  height: 50px !important;
}

select.form-control-custom {
  appearance: none;
  -webkit-appearance: none;
}

.form-control-custom:focus {
  border-color: #ff416c;
  background: #fff;
  box-shadow: 0 0 15px rgba(255, 65, 108, 0.15);
  outline: none;
}

/* Buttons */
.btn-login,
.btn-register {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.4s;
  color: #fff;
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
}

.btn-register {
  margin-top: 10px;
}

.btn-login:hover,
.btn-register:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 75, 43, 0.4);
  color: #fff;
}

/* Links */
.login-footer-links {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.login-footer-links a {
  color: #718096;
  font-weight: 500;
  transition: all 0.3s;
}

.login-footer-links a:hover {
  color: #ff416c;
  text-decoration: none;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #cbd5e0;
  margin: 30px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #edf2f7;
}

.divider:not(:empty)::before {
  margin-right: 15px;
}

.divider:not(:empty)::after {
  margin-left: 15px;
}

/* Custom Controls */
.custom-control-label::before {
  border: 2px solid #edf2f7;
  border-radius: 4px;
}

.custom-control-input:checked~.custom-control-label::before {
  background-color: #ff416c;
  border-color: #ff416c;
}

/* Header Specific */
.header-main-account {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  padding: 12px 0;
  border-bottom: 2px solid #ff416c;
}

.header-main-account .logo img {
  max-height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-main-account .logo img:hover {
  transform: scale(1.05);
}

.header-main-account .hotline-link {
  color: #ff416c !important;
  font-weight: 800;
  font-size: 16px;
  background: #fff5f5;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #ffebeb;
  transition: all 0.3s;
}

.header-main-account .hotline-link:hover {
  background: #ff416c;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 65, 108, 0.2);
}

.header-main-account .account-div a {
  color: #4a5568 !important;
  font-weight: 600;
  transition: all 0.3s;
}

.header-main-account .account-div a:hover {
  color: #ff416c !important;
}

#wishlist-total {
  color: #4a5568;
  font-weight: 600;
  transition: all 0.3s;
}

#wishlist-total:hover {
  color: #ff416c;
  text-decoration: none;
}

/* Footer Specific */
.footer-account {
  padding-top: 5px;
  margin-top: 0;
  color: #ffffff;
}

.footer-account .box-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-account .box-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(to right, #ff416c, #ff4b2b);
  border-radius: 2px;
}

.footer-account .list-unstyled li {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

.footer-account .list-unstyled li a {
  color: #ffffff;
  transition: all 0.3s;
  display: inline-block;
}

.footer-account .list-unstyled li a:hover {
  color: #ff416c;
  transform: translateX(5px);
  text-decoration: none;
}

.footer-account .phone-footer {
  color: #ff416c !important;
  font-weight: 700;
  font-size: 17px;
}

.footer-account .bottom-footer {
  background: #036961;
  padding: 25px 0;
  border-top: 1px solid #036961;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
}

.footer-account .bo-cong-thuong {
  max-height: 55px;
  margin-bottom: 15px;
}

.footer-account .btn-danger {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.2);
}

/* Hosting Packages Refined */
.hosting-well {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  margin-bottom: 35px;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hosting-well::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

.hosting-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.hosting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 65, 108, 0.1);
  border-color: rgba(255, 65, 108, 0.2);
}

.hosting-header {
  padding: 25px 15px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #f8fafc;
}

.hosting-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.hosting-price {
  font-size: 22px;
  font-weight: 900;
  color: #ff416c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.hosting-price small {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
}

.hosting-body {
  padding: 15px;
  flex-grow: 1;
}

.hosting-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hosting-list li {
  margin-bottom: 8px;
  color: #475569;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  line-height: 1.3;
}

.hosting-list li i {
  color: #10b981;
  margin-right: 8px;
  font-size: 14px;
  margin-top: 2px;
}

.hosting-footer {
  padding: 15px;
  background: #fcfcfc;
  border-top: 1px solid #f1f5f9;
}

.hosting-options {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
}

.hosting-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hosting-radio-group label {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.2s;
  background: #fff;
  border: 1px solid transparent;
}

.hosting-radio-group label:hover {
  background: #fff5f5;
  border-color: #ffebeb;
}

.hosting-radio-group input[type="radio"] {
  margin-right: 12px;
  cursor: pointer;
}

.btn-hosting-order {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  color: #fff !important;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  width: 100%;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-hosting-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 65, 108, 0.35);
}

.input-domain-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 30px;
}

.input-domain-wrapper .icon-frame {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 48px;
  height: 48px;
  background: #fff5f5;
  color: #ff416c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 20px;
  pointer-events: none;
  border: 1px solid #ffebeb;
}

.domain-input-premium {
  padding-left: 65px !important;
  height: 60px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b;
  border-radius: 18px !important;
  border: 2px solid #e2e8f0 !important;
  background: #fff !important;
  transition: all 0.3s ease !important;
  width: 100%;
}

.domain-input-premium:focus {
  border-color: #ff416c !important;
  box-shadow: 0 0 0 4px rgba(255, 65, 108, 0.1) !important;
  outline: none;
}

.domain-input-premium::placeholder {
  color: #94a3b8;
  font-weight: 500;
}