/* ========================================
   CVNAMAI AUTH
   Prisijungimas + registracija
   ======================================== */


/* ========================================
   AUTH MODALAS
   ======================================== */

.auth-modal {
  display: none;

  position: fixed;
  inset: 0;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.55);

  backdrop-filter: blur(3px);

  z-index: 1000;
}


/* ========================================
   AUTH KORTELĖ
   ======================================== */

.auth-modal-content {
  position: relative;

  width: 100%;
  max-width: 440px;

  max-height: calc(100vh - 40px);

  overflow-y: auto;

  box-sizing: border-box;

  padding: 32px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 20px;

  box-shadow:
    0 24px 70px
    rgba(15, 23, 42, 0.22);
}


/* scrollbar */

.auth-modal-content::-webkit-scrollbar {
  width: 8px;
}

.auth-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.auth-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}


/* ========================================
   ANTRAŠTĖS
   ======================================== */

.auth-modal-content h2 {
  margin:
    0
    0
    8px;

  color: #172033;

  font-size: 26px;
  line-height: 1.25;
}


.auth-modal-content > div > p {
  margin:
    0
    0
    24px;

  color: #64748b;

  font-size: 14px;
  line-height: 1.55;
}


/* ========================================
   UŽDARYMO MYGTUKAS
   ======================================== */

.auth-close {
  position: absolute;

  top: 14px;
  right: 16px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 9px;

  background: transparent;

  color: #172033;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.auth-close:hover {
  background: #f1f5f9;
}


/* ========================================
   INPUT LAUKAI
   ======================================== */

.auth-field {
  margin-bottom: 16px;
}


.auth-field label {
  display: block;

  margin-bottom: 7px;

  color: #334155;

  font-size: 13px;
  font-weight: 700;
}


.auth-field input {
  width: 100%;
  height: 48px;

  box-sizing: border-box;

  padding:
    0
    14px;

  border: 1px solid #dbe2ea;
  border-radius: 11px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.auth-field input::placeholder {
  color: #94a3b8;
}


.auth-field input:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.10);
}


/* ========================================
   GOOGLE
   ======================================== */

#googleLoginButton {
  width: 100%;
  min-height: 48px;

  padding:
    0
    16px;

  border: 1px solid #dbe2ea;
  border-radius: 11px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


#googleLoginButton:hover {
  background: #f8fafc;

  border-color: #cbd5e1;

  transform: translateY(-1px);
}


/* ========================================
   ARBA
   ======================================== */

.auth-divider {
  display: flex;
  align-items: center;

  gap: 12px;

  margin:
    20px
    0;

  color: #94a3b8;

  font-size: 12px;
}


.auth-divider::before,
.auth-divider::after {
  content: "";

  flex: 1;

  height: 1px;

  background: #e2e8f0;
}


/* ========================================
   LOGIN MYGTUKAS
   ======================================== */

#loginSubmitButton {
  width: 100%;
  min-height: 48px;

  margin-top: 4px;

  padding:
    0
    16px;

  border: none;
  border-radius: 11px;

  background: #2563eb;

  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


#loginSubmitButton:hover {
  background: #1d4ed8;

  transform: translateY(-1px);

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.20);
}


#loginSubmitButton:disabled {
  opacity: 0.65;

  cursor: default;

  transform: none;
}


/* ========================================
   NETURI PASKYROS
   ======================================== */

.auth-register-prompt {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 18px;

  color: #64748b;

  font-size: 13px;
}


#registerButton {
  padding: 0;

  border: none;

  background: transparent;

  color: #2563eb;

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;
}


#registerButton:hover {
  text-decoration: underline;
}


/* ========================================
   GRĮŽTI Į LOGIN
   ======================================== */

.auth-back-button {
  margin:
    0
    0
    20px;

  padding:
    7px
    10px;

  border: none;
  border-radius: 8px;

  background: #f8fafc;

  color: #475569;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.auth-back-button:hover {
  background: #eff6ff;

  color: #2563eb;
}


/* ========================================
   REGISTRACIJOS ROLĖ
   ======================================== */

.register-role-options {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-bottom: 22px;
}


.register-role-button {
  min-height: 76px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding:
    12px;

  border: 1px solid #dbe2ea;
  border-radius: 12px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}


.register-role-button:hover {
  border-color: #93b4ef;

  background: #f8fbff;

  transform: translateY(-1px);
}


.register-role-button.active {
  border-color: #2563eb;

  background: #eff6ff;

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.09);
}


.register-role-icon {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;

  border-radius: 9px;

  font-size: 17px;
}


.register-role-button.active
.register-role-icon {
  background: #dbeafe;
}


.register-role-text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}


.register-role-text strong {
  color: #172033;

  font-size: 13px;
}


.register-role-text small {
  color: #94a3b8;

  font-size: 10px;
  line-height: 1.3;
}


/* ========================================
   ĮMONĖS DUOMENYS
   ======================================== */

.register-company-fields {
  margin-top: 8px;
}


.register-section-divider {
  height: 1px;

  margin:
    4px
    0
    20px;

  background: #e8edf3;
}


.register-company-fields h3 {
  margin:
    0
    0
    16px;

  color: #172033;

  font-size: 16px;
}


/* ========================================
   SUTIKIMAI
   ======================================== */

.register-agreements {
  display: flex;
  flex-direction: column;

  gap: 11px;

  margin-top: 22px;
  margin-bottom: 20px;

  padding:
    16px;

  background: #f8fafc;

  border: 1px solid #e6ebf2;
  border-radius: 12px;
}


.register-checkbox {
  display: flex;
  align-items: flex-start;

  gap: 9px;

  cursor: pointer;
}


.register-checkbox input[type="checkbox"] {
  width: 17px;
  height: 17px;

  flex-shrink: 0;

  margin:
    1px
    0
    0;

  accent-color: #2563eb;

  cursor: pointer;
}


.register-checkbox span {
  color: #475569;

  font-size: 12px;
  line-height: 1.45;
}


.register-checkbox a {
  color: #2563eb;

  font-weight: 700;

  text-decoration: none;
}


.register-checkbox a:hover {
  text-decoration: underline;
}


.register-checkbox small {
  color: #94a3b8;

  font-size: 11px;
}


.register-checkbox-optional {
  padding-top: 10px;

  border-top: 1px solid #e2e8f0;
}


/* ========================================
   REGISTRACIJOS MYGTUKAS
   ======================================== */

#registerSubmitButton {
  width: 100%;
  min-height: 50px;

  padding:
    0
    16px;

  border: none;
  border-radius: 11px;

  background: #2563eb;

  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


#registerSubmitButton:hover {
  background: #1d4ed8;

  transform: translateY(-1px);

  box-shadow:
    0 7px 18px
    rgba(37, 99, 235, 0.20);
}


#registerSubmitButton:disabled {
  opacity: 0.65;

  cursor: default;

  transform: none;

  box-shadow: none;
}


/* ========================================
   KLAIDOS
   ======================================== */

.auth-message {
  margin:
    12px
    0;

  padding:
    11px
    12px;

  border-radius: 9px;

  font-size: 12px;
  line-height: 1.45;
}


.auth-error-message {
  background: #fef2f2;

  border: 1px solid #fecaca;

  color: #b91c1c;
}


/* ========================================
   GOOGLE NAUJO VARTOTOJO ROLE MODALAS
   ======================================== */

.role-modal {
  display: none;

  position: fixed;
  inset: 0;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(15, 23, 42, 0.55);

  backdrop-filter: blur(3px);

  z-index: 1100;
}


.role-modal-content {
  width: 100%;
  max-width: 420px;

  box-sizing: border-box;

  padding: 32px;

  background: #ffffff;

  border: 1px solid #e2e8f0;
  border-radius: 20px;

  text-align: center;

  box-shadow:
    0 24px 70px
    rgba(15, 23, 42, 0.22);
}


.role-modal-content h2 {
  margin:
    0
    0
    8px;

  color: #172033;

  font-size: 24px;
}


.role-modal-content p {
  margin:
    0
    0
    22px;

  color: #64748b;

  font-size: 14px;
}


#candidateRoleButton,
#employerRoleButton {
  width: 100%;
  min-height: 52px;

  margin-bottom: 10px;

  padding:
    0
    16px;

  border: 1px solid #dbe2ea;
  border-radius: 11px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


#candidateRoleButton:hover,
#employerRoleButton:hover {
  border-color: #2563eb;

  background: #eff6ff;

  transform: translateY(-1px);
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 520px) {

  .auth-modal {
    padding: 12px;
  }


  .auth-modal-content {
    max-height:
      calc(100vh - 24px);

    padding:
      26px
      20px
      22px;

    border-radius: 16px;
  }


  .auth-modal-content h2 {
    font-size: 23px;
  }


  .register-role-options {
    grid-template-columns: 1fr;
  }


  .register-role-button {
    min-height: 66px;
  }


  .register-agreements {
    padding: 14px;
  }


  .role-modal {
    padding: 12px;
  }


  .role-modal-content {
    padding:
      26px
      20px;

    border-radius: 16px;
  }

}
/* ========================================
   SLAPTAŽODŽIO AKYTĖ
   ======================================== */

.password-input-wrap {
  position: relative;
}


.password-input-wrap input {
  padding-right: 52px;
  margin-bottom: 0;
}


.password-toggle {
  position: absolute;

  top: 50%;
  right: 8px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 8px;

  background: transparent;

  font-size: 17px;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  opacity: 0.65;

  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}


.password-toggle:hover {
  background: #f1f5f9;

  opacity: 1;
}


/* ========================================
   PAMIRŠAU SLAPTAŽODĮ
   ======================================== */

.forgot-password-button {
  display: block;

  margin:
    -5px
    0
    17px
    auto;

  padding: 2px 0;

  border: none;

  background: transparent;

  color: #2563eb;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}


.forgot-password-button:hover {
  text-decoration: underline;
}