:root {
  --page-bg: #eef7fb;
  --text: #626262;
  --ink: #1f1f1f;
  --line: #707070;
  --accent: #ffbd47;
  --accent-soft: #ffdf97;
  --card: #ffffff;
  --shadow: 0 3px 16px rgba(36, 50, 62, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Quicksand", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(42px, 5.2vw, 100px);
  padding: 92px clamp(72px, 7vw, 128px) 74px;
  overflow: hidden;
}

.brand {
  position: absolute;
  top: 26px;
  left: 60px;
  width: 116px;
  z-index: 3;
}

.brand img,
.hero-art img {
  display: block;
  width: 100%;
  position: relative;
}

.buddha{
  animation: pulse 4s infinite ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes pulse {
  0%{top:-20px;}
  50%{top: 20px;}
  100%{top:-20px;}
}

.hero-art {
  justify-self: center;
  width: min(37vw, 506px);
  margin-top: 58px;
}

.auth-area {
  justify-self: center;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

h1 {
  margin: 0 0 58px;
  color: #5d5d5d;
  font-family: "Nunito", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.form-shell {
  width: 450px;
  height: 520px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 56px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.forms-slider {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.56s cubic-bezier(0.76, 0, 0.24, 1);
}

.signup-mode .forms-slider {
  transform: translateX(-100%);
}

.auth-form {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  padding: 64px 70px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.field {
  position: relative;
  width: 100%;
  height: 64px;
  margin-bottom: 38px;
}

.field input {
  width: 100%;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #666666;
  outline: 0;
  padding: 18px 38px 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field label {
  position: absolute;
  top: 50%;
  left: 38px;
  transform: translateY(-50%);
  padding: 0 8px;
  color: #666666;
  background: var(--card);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

.field.is-focused input,
.field.has-value input {
  border-color: #6d6d6d;
}

.field.is-focused label,
.field.has-value label {
  top: 0;
  transform: translateY(-52%);
  font-size: 18px;
  font-weight: 700;
}

.primary-btn {
  min-width: 198px;
  height: 50px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #000000;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.signup-form .primary-btn {
  background: var(--accent-soft);
}

.primary-btn:hover,
.google-btn:hover,
.switch-link:hover {
  transform: translateY(-1px);
}

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 34px 0 36px;
  color: #626262;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: "";
  height: 2px;
  flex: 1;
  background: #c9c9c9;
}

.google-btn {
  min-width: 304px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-size: 23px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from -35deg, #4285f4 0 25%, #34a853 0 44%, #fbbc05 0 66%, #ea4335 0 84%, #4285f4 0) border-box;
  border: 8px solid transparent;
  position: relative;
  font-size: 0;
}

.google-mark::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 13px;
  width: 18px;
  height: 8px;
  background: #4285f4;
}

.switch-copy {
  margin: 46px 0 0;
  color: #696969;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.switch-link {
  border: 0;
  border-bottom: 2px solid currentColor;
  padding: 0 0 1px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
}

.signup-copy {
  display: none;
}

.signup-mode .login-copy {
  display: none;
}

.signup-mode .signup-copy {
  display: block;
}

@media (max-width: 900px) {
  .auth-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 800px;
    padding: 16px 44px 34px;
    overflow: visible;
  }

  .brand {
    position: static;
    width: 114px;
    margin: 0 auto 42px;
  }

  .hero-art {
    width: 188px;
    margin: 0 auto 32px;
  }

  .auth-area {
    width: 100%;
    margin: 0;
  }

  h1 {
    margin-bottom: 34px;
    font-size: 24px;
    letter-spacing: 0.14em;
  }

  .form-shell {
    width: 272px;
    height: 290px;
    border-radius: 31px;
  }

  .auth-form {
    padding: 32px 22px 18px;
  }

  .field {
    height: 46px;
    margin-bottom: 16px;
  }

  .field input {
    border-width: 2px;
    padding: 10px 20px 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .field label {
    left: 20px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .field.is-focused label,
  .field.has-value label {
    font-size: 11px;
  }

  .primary-btn {
    min-width: 100px;
    height: 37px;
    font-size: 12px;
  }

  .divider {
    gap: 10px;
    margin: 19px 0 18px;
    font-size: 12px;
  }

  .divider::before,
  .divider::after {
    height: 1px;
  }

  .google-btn {
    min-width: 154px;
    height: 36px;
    gap: 8px;
    border-width: 1px;
    font-size: 12px;
  }

  .google-mark {
    width: 21px;
    height: 21px;
    border-width: 5px;
  }

  .google-mark::after {
    right: -5px;
    top: 8px;
    width: 11px;
    height: 5px;
  }

  .switch-copy {
    margin-top: 26px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: #696969;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.auth-message[data-type="success"] {
  color: #26764b;
}

.auth-message[data-type="error"] {
  color: #b43d35;
}

.primary-btn:disabled,
.gsi-material-button:disabled {
  cursor: wait;
}


@media (min-width: 901px) and (max-width: 1260px) {
  .auth-page {
    grid-template-columns: minmax(300px, 0.85fr) minmax(460px, 1fr);
    padding-left: 52px;
    padding-right: 52px;
  }

  .brand {
    left: 42px;
  }

  .form-shell {
    width: 450px;
  }

  .auth-form {
    padding-left: 58px;
    padding-right: 58px;
  }
}
