:root {
  --muted: rgba(15, 23, 42, 0.58);

  --bgTop: #ffffff;
  --bgMid: #fffdf8;
  --bgBot: #f8f1de;

  --gold1: #caa128;
  --gold2: #e6b843;
  --gold3: #f5d35f;
  --goldDark: #9f7f2c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
  overflow-x: hidden;

  background: linear-gradient(
    to bottom,
    var(--bgTop) 0%,
    var(--bgTop) 58%,
    var(--bgMid) 74%,
    var(--bgBot) 100%
  );

  display: flex;
  flex-direction: column;
}

/* MAIN */

.signin-page {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 56px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 42px;
  padding: 52px 56px;
}

/* INTRO */

.intro-section {
  width: 100%;
  max-width: 1200px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-text {
  width: 100%;
  text-align: center;
  animation: fadeInDrop 0.7s ease-out forwards;
}

.intro-text h1 {
  width: 100%;
  margin: 0 auto 22px;

  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.045em;

  color: #0b0b0c;
}

.title-mobile {
  display: none;
}

.title-desktop {
  display: inline;
  white-space: nowrap;
}

.intro-text p {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;

  font-size: clamp(17px, 1.15vw, 21px);
  line-height: 1.45;

  text-align: center;
  color: var(--muted);
}

/* AUTH */

.auth-section {
  width: 100%;
  max-width: 520px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.signin-card {
  width: 100%;
  max-width: 550px;
  min-height: 450px;

  padding: 48px;

  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);

  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  animation: fadeInDrop 0.7s ease-out 0.08s both;
}

 .signin-form {
  display: grid;
  gap: 18px;
}



.topmark {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  margin: 0 auto 28px;
}

.line {
  height: 1px;
  flex: 1;

  border-radius: 999px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(214, 170, 35, 0.32),
    transparent
  );
}

.topmark img {
  width: auto;
  height: 24px;

  display: block;
  object-fit: contain;
}

.signin-card h2 {
  margin: 0 0 16px;

  font-size: clamp(55px, 3vw, 55px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;

  color: #111;
}

.auth-subtitle {
  margin: 0 0 20px;

  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

 .provider-buttons{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.provider-btn{
  width:100%;
  height:50px;

  background:#fff;

  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;

  cursor:pointer;

  font-family:'Inter',sans-serif;
  font-size:16px;
  font-weight:600;

  color:#1f2937;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.provider-btn img{
  width:20px;
  height:20px;
}

.provider-btn:hover{
  transform:translateY(-2px);

  border-color:var(--gold2);

  box-shadow:
    0 0 0 3px rgba(212,175,55,.12),
    0 12px 30px rgba(15,23,42,.08);
}

.provider-btn:active{
  transform:translateY(0);
}

.provider-btn:hover{
  border-color:var(--gold2);

  background:
    linear-gradient(
      180deg,
      rgba(212,175,55,.05),
      rgba(212,175,55,.02)
    );
}



.signin-field label {
  display: block;
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 700;
  color: #2b3440;
  text-align: left;
}

.signin-field input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  background: #fff;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

 .signin-field input:focus {
   border-color:var(--gold2);
}

 .signinbutton, .signinbuttoncode{

   width: 100%;
  height: 50px;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;

  color: rgba(255, 255, 255, 0.96);

  background: linear-gradient(
    90deg,
    var(--gold1) 0%,
    var(--gold2) 48%,
    var(--gold3) 100%
  );

  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;

  transition:
    filter 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;

   }


 .signinbutton:hover, .signinbuttoncode:hover{
  filter: brightness(0.88) saturate(1.08);
  transform: translateY(-2px);

  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.17);
}

.signinbutton:active, .signinbuttoncode:active {
  filter: brightness(0.82);
  transform: translateY(0);
}




 .text a {
  color: #b38a00;
  font-weight: 800;
  text-decoration: none;
}

 .text a:hover {
  text-decoration: underline;
}



 .signin-or{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}


.signin-forgot{
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.signin-forgot:hover {
  text-decoration: underline;
}


.signin-row-mini {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px
}
.signin-input-icon {
  position: relative;
}

.signin-input-icon input {
  width: 100%;
  padding-right: 44px;
}

.signin-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;

  border: none;
  background: transparent;
  padding: 0;
  margin: 0;

  color: #111;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-eye:hover {
  opacity: 0.65;
}

.eye-icon {
  display: block;
}

.eye-off {
  display: none;
}

.signin-eye.is-visible .eye-open {
  display: none;
}

.signin-eye.is-visible .eye-off {
  display: block;
}

.register-hint{
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  white-space: pre-line;
}

.register-hint.error {
    color: #b00020;
}

.is-invalid {
  border-color: #d32f2f !important;
}

.field-error {
  margin-top: 6px;
  margin-left: 5px;
  font-size: 13px;
  line-height: 1.35;
  color: #b00020;
  display: none;
  text-align: left;
}

.field-error.show {
  display: block;
}

.signin-field input.is-invalid {
  border-color: #b00020;
}


/* FOOTER */

.footer-panel {
  margin-top: auto;

  background: transparent;
  color: rgba(15, 23, 42, 0.46);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 8px;

  font-size: 14px;
  letter-spacing: 0.02em;

  padding: 14px 14px 20px;
}

.footer-line {
  width: min(150px, 55vw);
  height: 1px;

  border-radius: 999px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(230, 184, 67, 0.72),
    transparent
  );
}

/* ANIMATIONS */

@keyframes fadeInDrop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .signin-page {
    gap: 48px;
    padding: 42px 36px 48px;
  }

  .intro-section {
    max-width: 760px;
  }

  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: inline;
  }

  .intro-text h1 {
    font-size: clamp(40px, 7vw, 58px);
  }

  .intro-text p {
    max-width: 680px;
  }

  .signin-card {
    max-width: 460px;
  }
}

@media (max-width: 650px) {
  .signin-page {
    padding: 60px 16px 36px;
    gap: 38px;
  }

  .intro-text h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .intro-text p {
    font-size: 16px;
  }

  .signin-card {
    max-width: 100%;
    min-height: auto;

    padding: 35px;
    border-radius: 22px;
  }

  .topmark {
    margin-bottom: 28px;
  }

  .topmark img {
    height: 19px;
  }

  .signin-card h2 {
    font-size: 40px;
  }

  .google-btn {
    height: 54px;
    font-size: 15px;
  }

  .footer-panel {
    font-size: 12px;
  }

  .login-bottom{
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .intro-text h1 {
    font-size: 40px;
  }

  .signin-card {
    padding: 32px 22px;
  }

  .register-hint{
    font-size: 12px;
  }
}