﻿:root {
  --bg-dark: #022a25;
  --bg-mid: #0f6558;
  --bg-soft: #0f7a68;
  --bg-soft-2: #0b5a4d;
  --card: rgba(7, 73, 64, 0.44);
  --white: #f0f8f6;
  --title: #e6f5f1;
  --text: #a8c9c2;
  --field: rgba(56, 142, 128, 0.72);
  --line: rgba(223, 243, 237, 0.2);
  --shadow: 0 24px 56px rgba(0, 20, 17, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  overflow-x: hidden;
  font-family: var(--aida-font, "Afacad", Arial, sans-serif);
  background: #012823 url("../assets/images/Group 15.png") center/cover no-repeat;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 90, 78, 0.58);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.back-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(96%) sepia(6%) saturate(226%) hue-rotate(164deg) brightness(101%) contrast(96%);
}

.auth-card {
  width: 100%;
  max-width: 1200px;
  min-height: 540px;
  display: grid;
  grid-template-columns: 320px 360px;
  justify-content: space-between;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(228, 245, 240, 0.2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.panel__content {
  height: 100%;
}

.panel--brand {
  background: linear-gradient(180deg, rgba(14, 113, 96, 0.34) 0%, rgba(8, 81, 70, 0.38) 100%);
}

.panel__content--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.brand-logo {
  width: 90px;
  opacity: 0.98;
}

.brand-copy {
  max-width: 280px;
  display: none;
  color: var(--white);
}

.brand-copy.active {
  display: block;
}

.brand-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}

.brand-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(236, 250, 246, 0.9);
}

.ghost-button {
  margin-top: 18px;
  min-width: 158px;
  height: 42px;
  border: 1px solid rgba(229, 246, 241, 0.88);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ghost-button:hover {
  border-radius: 999px;
  background: linear-gradient(135deg, #329288 0%, #2a7f75 100%);
  color: #e8f5f2;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all ease-in 0.3s;
  border: none;
}

.panel--form {
  background: rgba(7, 88, 76, 0.34);
}

.panel__content--form {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.form-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.45s ease, visibility 0.35s ease;
}

.form-view.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.form-view form {
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.form-view h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  color: var(--title);
  font-weight: 700;
}

.subtitle {
  margin: 2px 0 10px;
  color: #c1ddd7;
  font-size: 0.95rem;
  text-align: center;
}

.input-wrap {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--field);
  border: 1px solid rgba(222, 242, 236, 0.15);
  border-radius: 10px;
}

.input-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.input-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e9f7f3;
  font-size: 1rem;
}

.input-wrap input::placeholder {
  color: #d2e8e3;
}

.primary-button {
  width: 172px;
  height: 42px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #329288 0%, #2a7f75 100%);
  color: #e8f5f2;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: .5s;
}
.primary-button:hover {
  border: 1px solid rgba(229, 246, 241, 0.88);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transition: 1.5s;
  
}

.oauth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(226, 244, 239, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(226, 244, 239, 0.2);
}

.google-button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(229, 246, 241, 0.62);
  color: #12342f;
  background: #f8fffd;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.google-button:hover {
  transform: translateY(-1px);
  background: #12342f;
  box-shadow: 0 10px 20px rgba(0, 22, 18, 0.22);
}

.google-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.google-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #12342f;
  font-size: 0.86rem;
  font-weight: 800;
}
.google-icon :hover{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #12342f;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.privacy-note {
  width: 100%;
  max-width: 280px;
  margin: -2px 0 0;
  color: #d2e8e3;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.privacy-note a {
  color: #f3fffb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.switch-link {
  margin-top: 2px;
  background: transparent;
  color: #d2e8e3;
  font-size: 0.9rem;
}

#toast-container {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  bottom: auto;
  display: grid;
  gap: 8px;
  pointer-events: none;
  z-index: 3;
}

.toast-msg {
  justify-self: center;
  max-width: min(94%, 360px);
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  color: #ecf8f5;
  background: rgba(20, 116, 100, 0.76);
  border: 1px solid rgba(222, 242, 236, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 18, 15, 0.35);
  transition: opacity 0.28s ease;
}

.toast-msg.erro {
  color: #fff6f6;
  background: rgba(150, 54, 62, 0.78);
  border-color: rgba(255, 213, 218, 0.26);
}

.toast-msg.cadastro {
  color: #f2fbf8;
  background: rgba(22, 132, 111, 0.82);
  border-color: rgba(218, 246, 238, 0.34);
  box-shadow: 0 8px 22px rgba(6, 34, 29, 0.42);
}

.toast-msg.cadastro.erro {
  color: #fff4f4;
  background: rgba(161, 59, 68, 0.82);
  border-color: rgba(255, 206, 212, 0.3);
}

@media (max-width: 1200px) {
  .auth-card {
    max-width: 1080px;
    grid-template-columns: 300px 340px;
  }
}

@media (max-width: 1024px) {
  .auth-card {
    max-width: 920px;
    min-height: 520px;
    grid-template-columns: 280px 320px;
    justify-content: space-between;
    gap: 0;
  }

  .panel__content--brand {
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .auth-card {
    width: min(620px, 100%);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel--brand {
    min-height: 200px;
  }

  .panel__content--form {
    min-height: 560px;
  }

  .form-view {
    padding: 28px 20px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 72px 12px 12px;
  }

  .back-link {
    top: 16px;
    left: 16px;
  }

  .auth-card {
    border-radius: 18px;
  }

  .panel--brand {
    min-height: 190px;
  }

  .panel__content--brand,
  .form-view {
    padding: 26px 18px;
  }

  .brand-logo {
    width: 78px;
  }

  .brand-copy h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .form-view h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .input-wrap {
    height: 50px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 420px) {
  body {
    padding: 68px 10px 10px;
  }

  .auth-card {
    border-radius: 14px;
  }

  .panel__content--brand,
  .form-view {
    padding: 22px 14px;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .switch-link {
    font-size: 0.86rem;
  }

  .privacy-note {
    font-size: 0.7rem;
  }

  #toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }
}

