:root {
  --bg-primary: #191919;
  --bg-dark: #0D131A;
  --bg-card-gradient: linear-gradient(90deg, #342B23 7.43%, #2C2F3F 100.37%);
  --border-card: #3E3E3E;
  --border-medium: #4E5473;
  --border-active: #6E7490;
  --text-white: #FFF;
  --text-grey: #B5B5B5;
  --text-grey-dark: #B7B7B7;
  --text-placeholder: #C6C6C6;
  --orange-primary: #FF6319;
  --orange-shadow: rgba(255, 104, 0, 0.24);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-primary);
  overflow-x: hidden;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}
@media (max-width: 991px) {
  .login-container {
    flex-direction: column;
  }
}

.left-section {
  width: 50%;
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (max-width: 991px) {
  .left-section {
    width: 100%;
    min-height: 300px;
    order: 2;
  }
}
@media (max-width: 767px) {
  .left-section {
    min-height: 200px;
  }
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  z-index: 0;
}

.radial-glow {
  position: absolute;
  top: -34px;
  left: -124px;
  width: 1012px;
  height: 1012px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--orange-primary) 0%, var(--bg-primary) 100%);
  opacity: 0.14;
  pointer-events: none;
}
@media (max-width: 1599px) {
  .radial-glow {
    width: 800px;
    height: 800px;
    top: -20px;
    left: -100px;
  }
}
@media (max-width: 1199px) {
  .radial-glow {
    width: 600px;
    height: 600px;
    top: -10px;
    left: -80px;
  }
}
@media (max-width: 991px) {
  .radial-glow {
    width: 500px;
    height: 500px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 767px) {
  .radial-glow {
    width: 400px;
    height: 400px;
    top: -80px;
  }
}

.forevers-logo {
  position: relative;
  z-index: 1;
  width: 363px;
  height: 172px;
  display: flex;
  align-items: center;
  padding-right: 21.757px;
}
.forevers-logo svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 1199px) {
  .forevers-logo {
    width: 300px;
    height: 142px;
  }
}
@media (max-width: 991px) {
  .forevers-logo {
    width: 250px;
    height: 118px;
  }
}
@media (max-width: 767px) {
  .forevers-logo {
    width: 200px;
    height: 95px;
  }
}

.right-section {
  width: 50%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 30px;
  gap: 24px;
}
@media (max-width: 991px) {
  .right-section {
    width: 100%;
    order: 1;
    padding: 30px 24px;
  }
}
@media (max-width: 767px) {
  .right-section {
    padding: 24px 16px;
    gap: 20px;
  }
}

.language-switcher {
  position: absolute;
  top: 38px;
  right: 30px;
  z-index: 10;
}
@media (max-width: 991px) {
  .language-switcher {
    top: 30px;
    right: 24px;
  }
}
@media (max-width: 767px) {
  .language-switcher {
    top: 24px;
    right: 16px;
  }
}

.lang-selector {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px 0 0;
  border-radius: 29px;
  border: 1px solid #494949;
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 8px;
  position: relative;
}
.lang-selector:hover {
  background: #222;
  border-color: #5a5a5a;
}
@media (max-width: 767px) {
  .lang-selector {
    height: 28px;
    padding: 0 10px 0 0;
    gap: 6px;
  }
}

.flag-wrapper {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.flag-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 767px) {
  .flag-wrapper {
    width: 28px;
    height: 28px;
  }
}

.lang-text {
  color: var(--text-white);
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
@media (max-width: 767px) {
  .lang-text {
    font-size: 11px;
  }
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .dropdown-icon {
    width: 12px;
    height: 12px;
  }
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-primary);
  border: 1px solid #494949;
  border-radius: 12px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.lang-dropdown.active {
  display: flex;
}
@media (max-width: 767px) {
  .lang-dropdown {
    min-width: 100px;
    padding: 6px;
  }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-white);
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lang-option.active {
  background: rgba(255, 99, 25, 0.15);
}
.lang-option .flag-wrapper {
  width: 32px;
  height: 32px;
}
@media (max-width: 767px) {
  .lang-option {
    padding: 6px 10px;
    gap: 8px;
    font-size: 13px;
  }
  .lang-option .flag-wrapper {
    width: 28px;
    height: 28px;
  }
}

.login-card {
  width: 516px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}
@media (max-width: 575px) {
  .login-card {
    width: 100%;
    gap: 20px;
  }
}

.card-content {
  width: 100%;
  border-radius: 40px;
  border: 1px solid var(--border-card);
  background: var(--bg-card-gradient);
  box-shadow: 8px 12px 16px rgba(25, 25, 25, 0.24);
  backdrop-filter: blur(32px);
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (max-width: 767px) {
  .card-content {
    padding: 28px 36px;
    gap: 28px;
    border-radius: 32px;
  }
}
@media (max-width: 575px) {
  .card-content {
    padding: 24px 24px;
    gap: 24px;
    border-radius: 24px;
  }
}

.card-title {
  color: var(--text-white);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 0;
}
@media (max-width: 767px) {
  .card-title {
    font-size: 22px;
    line-height: 28px;
  }
}
@media (max-width: 575px) {
  .card-title {
    font-size: 20px;
    line-height: 26px;
  }
}

.social-auth-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-auth-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
@media (max-width: 575px) {
  .social-auth-buttons {
    gap: 32px;
  }
}
@media (max-width: 400px) {
  .social-auth-buttons {
    gap: 20px;
  }
}

.social-auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.social-auth-btn:hover {
  transform: translateY(-4px);
}
.social-auth-btn:hover .social-icon-wrapper circle {
  opacity: 0.4;
}
@media (max-width: 575px) {
  .social-auth-btn {
    gap: 6px;
  }
}

.social-icon-wrapper {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  position: relative;
}
.social-icon-wrapper svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 575px) {
  .social-icon-wrapper {
    width: 44px;
    height: 44px;
  }
}

.social-label {
  color: var(--text-white);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
@media (max-width: 575px) {
  .social-label {
    font-size: 13px;
    line-height: 18px;
  }
}
@media (max-width: 400px) {
  .social-label {
    font-size: 12px;
  }
}

.divider-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  align-self: stretch;
}

.divider-line {
  flex: 1;
  height: 1px;
  opacity: 0.1;
  background: var(--text-white);
}

.divider-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--text-white);
  background: #404040;
  opacity: 0.24;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.divider-circle span {
  color: var(--text-grey-dark);
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  position: relative;
  z-index: 1;
}
@media (max-width: 575px) {
  .divider-circle {
    width: 36px;
    height: 36px;
  }
  .divider-circle span {
    font-size: 14px;
  }
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 575px) {
  .login-form {
    gap: 24px;
  }
}

.form-group {
  width: 100%;
  position: relative;
}
.form-group.password-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-wrapper {
  width: 100%;
  height: 52px;
  border-radius: 1000px;
  border: 1px solid var(--border-active);
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 8px 0 8px;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
}
.input-wrapper:focus-within {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 2px rgba(255, 99, 25, 0.2);
}
@media (max-width: 575px) {
  .input-wrapper {
    height: 48px;
    padding: 0 6px 0 6px;
    gap: 10px;
  }
}

.input-icon {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.input-icon svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 575px) {
  .input-icon {
    width: 32px;
    height: 32px;
  }
  .input-icon svg {
    width: 20px;
    height: 20px;
  }
}

.form-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  padding: 12px 8px;
}
.form-input::-moz-placeholder {
  color: var(--text-placeholder);
}
.form-input::placeholder {
  color: var(--text-placeholder);
}
.form-input::-ms-reveal, .form-input::-ms-clear {
  display: none;
}
.form-input::-webkit-contacts-auto-fill-button, .form-input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  height: 0;
  width: 0;
  margin: 0;
}
.form-input:-webkit-autofill, .form-input:-webkit-autofill:hover, .form-input:-webkit-autofill:focus, .form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
  -webkit-text-fill-color: var(--text-white) !important;
}
@media (max-width: 575px) {
  .form-input {
    font-size: 15px;
    line-height: 24px;
    padding: 10px 6px;
  }
}

.password-toggle {
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
}
.password-toggle:hover {
  opacity: 0.8;
  border-color: var(--orange-primary);
}
.password-toggle:active {
  background: rgba(255, 255, 255, 0.08);
}
.password-toggle svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 575px) {
  .password-toggle {
    width: 44px;
    height: 44px;
  }
  .password-toggle svg {
    width: 20px;
    height: 20px;
  }
}

.forgot-password-link {
  display: inline-flex;
  align-self: center;
  padding: 8px 24px;
  border-radius: 1000px;
  box-shadow: 8px 12px 16px rgba(25, 25, 25, 0.24);
  backdrop-filter: blur(32px);
  color: var(--orange-primary);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: underline;
  text-decoration-style: solid;
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  transition: all 0.3s ease;
}
.forgot-password-link:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}
@media (max-width: 575px) {
  .forgot-password-link {
    font-size: 15px;
    line-height: 24px;
    padding: 6px 20px;
  }
}

.submit-btn {
  display: flex;
  width: 100%;
  height: 52px;
  padding: 17px 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 1000px;
  background: var(--orange-primary);
  box-shadow: 2px 2px 8px var(--orange-shadow);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-white);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
}
.submit-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.submit-btn svg path {
  fill: var(--text-white);
}
.submit-btn:hover {
  background: #ff7519;
  box-shadow: 2px 2px 12px rgba(255, 104, 0, 0.4);
  transform: translateY(-2px);
}
.submit-btn:active {
  transform: translateY(0);
}
@media (max-width: 575px) {
  .submit-btn {
    height: 48px;
    padding: 15px 0;
    font-size: 16px;
    line-height: 24px;
  }
  .submit-btn svg {
    width: 20px;
    height: 20px;
  }
}

.register-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.register-text {
  color: var(--text-grey);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  margin: 0;
}
@media (max-width: 575px) {
  .register-text {
    font-size: 15px;
    line-height: 24px;
  }
}

.register-btn {
  display: inline-flex;
  padding: 10px 32px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 1000px;
  border: 1px solid var(--orange-primary);
  background: var(--bg-card-gradient);
  box-shadow: 8px 12px 16px rgba(25, 25, 25, 0.24);
  backdrop-filter: blur(32px);
  color: var(--text-white);
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.register-btn:hover {
  background: linear-gradient(90deg, #3d3229 0%, #353850 100%);
  transform: translateY(-2px);
  box-shadow: 8px 16px 20px rgba(25, 25, 25, 0.32);
}
.register-btn:active {
  transform: translateY(0);
}
@media (max-width: 575px) {
  .register-btn {
    padding: 8px 28px;
    font-size: 15px;
    line-height: 24px;
  }
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 991px) {
  .footer-links {
    bottom: 30px;
  }
}
@media (max-width: 767px) {
  .footer-links {
    bottom: 24px;
    gap: 20px;
  }
}
@media (max-width: 575px) {
  .footer-links {
    gap: 16px;
    bottom: 20px;
  }
}

.footer-link {
  color: var(--text-grey);
  text-align: center;
  font-family: "Montserrat", -apple-system, Roboto, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: underline;
  text-decoration-style: solid;
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  transition: all 0.3s ease;
}
.footer-link:hover {
  color: var(--text-white);
  opacity: 0.8;
}
@media (max-width: 575px) {
  .footer-link {
    font-size: 13px;
    line-height: 18px;
  }
}

@media (max-width: 400px) {
  .social-auth-buttons {
    flex-wrap: wrap;
    gap: 16px;
  }
  .social-auth-btn {
    width: calc(50% - 8px);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-card {
  animation: fadeIn 0.5s ease-out;
}

button:focus-visible {
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--orange-primary);
  outline-offset: 2px;
}

input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  /* Use box-shadow to simulate background-color override */
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  /* Use -webkit-text-fill-color to change text color */
  -webkit-text-fill-color: #333333 !important;
  /* Add a long transition delay to prevent the browser's style from reappearing */
  transition: background-color 5000s ease-in-out 0s;
}