:root {
  --blue-primary: #0015d5;
  --blue-gradient-start: #00045c;
  --blue-gradient-end: #51b59a;

  --btn-gradient: linear-gradient(90deg, #102df5 0%, #3ea5ff 100%);
  --gray-btn: #5e636e;

  --input-bg: #eff3fa;
  --input-border: #8e9bbd;
  --text-main: #000033;
  --text-gray: #555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-image: url("../img/background-login.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--blue-primary);
}

.white-panel {
  width: 45%;
  min-width: 500px;
  background-color: #ffffff;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.content-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-text h1 {
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.header-text h1 span {
  color: var(--blue-primary);
}
.header-text p,
.form-description {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 30px;
}

.back-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.back-header h2 {
  color: var(--text-main);
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-back {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s;
}
.btn-back svg {
  stroke: var(--blue-primary);
}
.btn-back svg:hover {
  stroke: #51b59a;
  transition: ease 0.2s;
  transform: scale(1.2);
}

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.btn-option {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    transform 0.2s,
    filter 0.2s;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.btn-option strong {
  font-weight: 700;
}
.btn-blue {
  background: var(--btn-gradient);
}
.btn-gray {
  background-color: var(--gray-btn);
  cursor: default;
}
.btn-option:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}
.input-group input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--input-bg);
  border: 1.8px solid var(--blue-primary);
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}
.input-group input:focus {
  border-color: #51b59a;
  background-color: #fff;
}

.password-wrapper {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  stroke: #0015d5;
}
.toggle-password svg:hover {
  stroke: #51b59a;
  transition: ease 0.2s;
}

.form-footer-links {
  margin-bottom: 25px;
}
.forgot-link {
  color: var(--blue-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.forgot-link:hover {
  color: #51b59a;
  transition: ease 0.2s;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gray-btn);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: default;
  transition: all 0.3s ease;
  position: relative;
}
.btn-submit.active {
  background: var(--btn-gradient);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 45, 245, 0.3);
}
.btn-submit.active:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.support-area {
  margin-top: 20px;
  text-align: center;
}
.support-link {
  display: inline-flex;
  align-items: center;
  color: #0015d5;
  gap: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
}
.support-link svg {
  width: 20px;
  height: 20px;
  fill: #0015d5;
}

.support-link:hover,
.support-link svg:hover,
.support-area:hover {
  color: #51b59a;
  fill: #51b59a;
  transition: ease 0.2s;
}

.social-footer {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 15px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    background-color 0.2s;
  text-decoration: none;
}
.social-btn svg {
  fill: #0015d5;
  width: 20px;
  height: 20px;
}
.social-btn:hover {
  transform: scale(1.1);
  fill: #51b59a;
}
.social-btn svg:hover {
  fill: #51b59a;
  transition: ease 0.2s;
}

.brand-panel {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-container img:hover {
  transition: ease 0.2s;
  transform: scale(1.05);
  cursor: pointer;
}
.logo-container img {
  max-width: 450px;
  width: 80%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.d-none {
  display: none !important;
}
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.btn-submit.loading .btn-text {
  visibility: hidden;
}
.btn-submit.loading .loader {
  display: block;
}

.method-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 10px;
}
.method-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.method-btn.active {
  background: white;
  color: var(--blue-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.timer-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}
.timer-countdown {
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.resend-link {
  color: var(--blue-primary);
  text-decoration: none;
  font-style: italic;
  font-weight: 500;
}
.resend-link.disabled {
  color: #999;
  pointer-events: none;
  cursor: default;
}

@media (max-width: 900px) {
  .white-panel {
    width: 100%;
    border-radius: 0;
    min-width: auto;
    padding: 30px;
  }
  .brand-panel {
    display: none;
  }
  .social-footer {
    position: relative;
    bottom: auto;
    margin-top: 40px;
  }
}
.phone-denyed{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
  animation: slideInFromBottom 0.5s ease-out;
  font-weight: 700;
  gap: 20px;
}


@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}