/* =========================
   SIGN IN PAGE
========================= */

body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  font-family: "ABeeZee", sans-serif;
  color: #184e83;
}

body::before,
body::after {
  z-index: 0;
}

.back-btn {
  position: fixed;
  top: 26px;
  left: 32px;
  z-index: 20;

  min-height: 44px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(24, 78, 131, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  color: #184e83;
  font-size: 13px;
  text-decoration: none;

  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.back-btn:hover {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(24, 78, 131, 0.14);
}

.signin-logo {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
  text-align: center;
  animation: authFadeDown 0.65s ease both;
}

.signin-logo img {
  width: 148px;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(24, 78, 131, 0.12));
}

.signin-container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.signin-card {
  width: min(100%, 440px);
  padding: 44px 44px 36px;
  border-radius: 38px;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.74);

  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(24, 78, 131, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  text-align: center;
  animation: authCardIn 0.7s ease both;
}

.signin-card h1 {
  margin: 0 0 10px;
  font-family: "Hammersmith One", sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: #184e83;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0 auto 34px;
  max-width: 330px;
  color: #5f7896;
  font-size: 14.5px;
  line-height: 1.55;
}

.signin-card form {
  text-align: left;
}

.signin-card label {
  display: block;
  margin-bottom: 8px;

  font-family: "Hammersmith One", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #24538b;
}

.signin-card input[type="email"],
.signin-card input[type="password"],
.signin-card input[type="text"] {
  width: 100%;
  height: 48px;

  padding: 0 15px;
  border: 1.5px solid rgba(47, 157, 222, 0.30);
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.58);
  color: #184e83;

  font-family: "ABeeZee", sans-serif;
  font-size: 14px;

  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease;
}

.signin-card input[type="email"] {
  margin-bottom: 18px;
}

.signin-card input:focus {
  border-color: #2f9dde;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(47, 157, 222, 0.13);
}

.signin-card input::placeholder {
  color: #8ea1b5;
  font-style: italic;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.password-field input {
  padding-right: 48px !important;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6e8094;

  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  background: rgba(222, 244, 253, 0.72);
  color: #184e83;
}

.password-toggle:focus {
  outline: none;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-field input::-webkit-credentials-auto-fill-button,
.password-field input::-webkit-textfield-decoration-container {
  display: none !important;
}

.signin-links {
  margin: 2px 0 24px;
  display: flex;
  justify-content: flex-start;
}

.forgot-link {
  color: #2f5d92;
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #184e83;
  text-decoration: underline;
}

.signin-btn {
  width: 100%;
  height: 52px;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #16b9d4, #2f9dde);
  color: #ffffff;

  font-family: "Hammersmith One", sans-serif;
  font-size: 17px;
  font-weight: 400;

  cursor: pointer;
  box-shadow: 0 18px 38px rgba(47, 157, 222, 0.28);

  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.signin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(47, 157, 222, 0.36);
  filter: brightness(1.03);
}

.signin-btn:active {
  transform: scale(0.98);
}

.bottom-text {
  margin: 22px 0 10px;
  color: #486789;
  font-size: 13px;
  line-height: 1.45;
}

.bottom-text a {
  color: #184e83;
  font-family: "Hammersmith One", sans-serif;
  text-decoration: none;
}

.bottom-text a:hover {
  text-decoration: underline;
}

.guest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;

  background: rgba(222, 244, 253, 0.58);
  border: 1px solid rgba(47, 157, 222, 0.18);

  color: #184e83;
  font-size: 12.5px;
  text-decoration: none;

  transition: transform 0.22s ease, background 0.22s ease;
}

.guest-link:hover {
  transform: translateY(-2px);
  background: rgba(222, 244, 253, 0.86);
}

@keyframes authFadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 700px) {
  body {
    justify-content: flex-start;
    padding: 86px 18px 28px;
  }

  .back-btn {
    top: 18px;
    left: 18px;
    min-height: 40px;
    padding: 0 15px;
    font-size: 12px;
  }

  .signin-logo {
    margin-bottom: 16px;
  }

  .signin-logo img {
    width: 126px;
  }

  .signin-card {
    padding: 34px 24px 30px;
    border-radius: 30px;
  }

  .signin-card h1 {
    font-size: 30px;
  }

  .subtitle {
    margin-bottom: 28px;
    font-size: 13.5px;
  }

  .signin-card input[type="email"],
  .signin-card input[type="password"],
  .signin-card input[type="text"] {
    height: 46px;
  }
}

@media (max-width: 430px) {
  body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .signin-card {
    padding: 30px 20px 26px;
    border-radius: 26px;
  }

  .signin-card h1 {
    font-size: 27px;
  }

  .signin-btn {
    height: 48px;
  }

  .bottom-text,
  .guest-link,
  .forgot-link {
    font-size: 12px;
  }
}

/* =========================
   GOOGLE IDENTITY SERVICES
========================= */

.google-auth-divider {
  margin: 22px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8297ad;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.google-auth-divider::before,
.google-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(47, 157, 222, 0.16);
}

.google-auth-divider span {
  padding: 0 4px;
}

.google-auth-block {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-auth-block .g_id_signin {
  max-width: 100%;
}

.google-auth-note {
  margin: 12px auto 0;
  max-width: 320px;
  color: #7890a8;
  font-size: 10.5px;
  line-height: 1.45;
}

@media (max-width: 380px) {
  .google-auth-divider {
    margin-top: 18px;
  }
}

