/* Kozamia auth + yasal + pact — mockup birebir (cream / #6A3D8A / Fraunces) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
  --auth-cream: #fdf8f5;
  --auth-purple: #6a3d8a;
  --auth-purple-deep: #4a2b63;
  --auth-lilac: #efe6f5;
  --auth-muted: #6b6580;
  --auth-ink: #2d1b3d;
  --auth-serif: var(--kozamia-brand-serif, "Fraunces", Georgia, "Times New Roman", serif);
}

/* —— Auth sheet —— */
#modal-login.auth-screen-modal.is-open,
#modal-login.auth-screen-modal {
  align-items: stretch;
}

#modal-login .auth-sheet {
  position: relative;
  width: min(100%, 28rem);
  max-width: 100%;
  margin: 0 auto;
  max-height: min(96dvh, 920px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(245, 228, 214, 0.95), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(242, 220, 205, 0.85), transparent 50%),
    var(--auth-cream) !important;
  border: none !important;
  border-radius: 1.35rem !important;
  box-shadow: 0 18px 48px rgba(45, 27, 61, 0.18) !important;
  padding: 1.15rem 1.35rem 1.75rem !important;
  color: var(--auth-ink);
}

#modal-login .auth-sheet.auth-sheet--login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.5rem !important;
  padding-bottom: 2rem !important;
}

@media (max-width: 640px) {
  #modal-login.auth-screen-modal .modal-backdrop {
    background: var(--auth-cream);
  }
  #modal-login .auth-sheet {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    padding: 1.25rem 1.35rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  #modal-login .auth-sheet.auth-sheet--login {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
  }
}

/* APK / app shell: giriş tam ekran mockup */
html.is-mobile-app #modal-login .auth-sheet-close,
html.kozamia-app-shell #modal-login .auth-sheet-close {
  opacity: 0.55;
}

html.is-mobile-app #modal-login .auth-google-after-login,
html.kozamia-app-shell #modal-login .auth-google-after-login {
  margin-top: 0.75rem;
}

html.is-mobile-app #modal-login .auth-forgot-under,
html.kozamia-app-shell #modal-login .auth-forgot-under {
  display: none;
}

#modal-login .auth-sheet-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(106, 61, 138, 0.18);
  background: #fff;
  color: var(--auth-purple);
}

.auth-sheet-bloom {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
  z-index: 0;
}
.auth-sheet-bloom-tl {
  width: 11rem;
  height: 11rem;
  top: -3rem;
  left: -3rem;
  background: radial-gradient(circle, rgba(106, 61, 138, 0.18), transparent 70%);
}
.auth-sheet-bloom-br {
  width: 10rem;
  height: 10rem;
  bottom: 2rem;
  right: -2.5rem;
  background: radial-gradient(circle, rgba(106, 61, 138, 0.12), transparent 70%);
}
.auth-sheet-flora {
  position: absolute;
  inset: auto 0 0 0;
  height: 7rem;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 60% at 12% 100%, rgba(106, 61, 138, 0.08), transparent),
    radial-gradient(ellipse 35% 55% at 88% 100%, rgba(106, 61, 138, 0.07), transparent);
}

#modal-login .auth-brand-block,
#modal-login .auth-sheet-head,
#modal-login .auth-form,
#modal-login .auth-google-block,
#modal-login .auth-form-error {
  position: relative;
  z-index: 1;
}

.auth-brand-block {
  text-align: center;
  padding-top: 0.35rem;
  margin-bottom: 1.5rem;
}
.auth-brand-name {
  margin: 0;
  font-family: var(--auth-serif);
  font-size: clamp(2.15rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--auth-purple);
  line-height: 1.1;
}
.auth-sheet--login .auth-brand-name {
  font-size: clamp(2.4rem, 9vw, 3rem);
}
.auth-brand-tagline {
  margin: 0.65rem 0 0;
  font-family: var(--auth-serif);
  font-size: 1.05rem;
  color: var(--auth-purple);
  font-style: italic;
  font-weight: 500;
}
.auth-diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.auth-diamond-line {
  width: 3.25rem;
  height: 1px;
  background: rgba(106, 61, 138, 0.45);
}
.auth-diamond-star {
  color: var(--auth-purple);
  font-size: 0.7rem;
  line-height: 1;
}
.auth-lotus-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.auth-lotus-line {
  width: 2.75rem;
  height: 1px;
  background: rgba(106, 61, 138, 0.35);
}
.auth-lotus-icon {
  font-size: 1.15rem !important;
  color: var(--auth-purple);
  font-variation-settings: "FILL" 1;
}

.auth-kayit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin: 1.1rem 0 0;
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--auth-purple);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-kayit-link span {
  font-size: 1.1rem;
  line-height: 1;
}
.auth-forgot-under {
  text-align: center;
  margin: 0.65rem 0 0;
}
.auth-forgot-under .link-btn {
  font-size: 0.8rem;
  color: var(--auth-muted);
}
.auth-google-after-login {
  margin-top: 0.35rem;
}
.auth-sheet--login .auth-primary-btn {
  margin-top: 0.55rem;
  background: var(--auth-purple) !important;
  box-shadow: 0 6px 18px rgba(106, 61, 138, 0.22) !important;
}
.auth-sheet--login .auth-icon-field {
  margin-bottom: 0.85rem;
}
.auth-sheet--login .auth-brand-block {
  margin-bottom: 2rem;
}

.auth-sheet-head {
  text-align: center;
  margin-bottom: 1rem;
}
.auth-sheet-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--auth-ink);
  font-family: inherit;
}
.auth-sheet-head #auth-modal-sub {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--auth-muted);
}

.auth-tabs-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.auth-icon-field {
  position: relative;
  display: block;
  margin: 0 0 0.7rem;
}
.auth-icon-field .field-input {
  width: 100%;
  padding: 0.9rem 2.75rem 0.9rem 2.85rem !important;
  border-radius: 0.9rem !important;
  border: 1px solid rgba(106, 61, 138, 0.22) !important;
  background: #fff !important;
  font-size: 0.95rem !important;
  color: var(--auth-ink);
  box-shadow: none !important;
}
.auth-icon-field .field-input:focus {
  outline: none;
  border-color: var(--auth-purple) !important;
  box-shadow: 0 0 0 3px rgba(106, 61, 138, 0.12) !important;
}
.auth-icon-field-ico {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-purple);
  font-size: 1.2rem !important;
  line-height: 1;
  pointer-events: none;
  font-weight: 600;
  z-index: 1;
}
.auth-icon-field .password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--auth-purple);
  cursor: pointer;
  padding: 0.35rem;
  z-index: 1;
}

.auth-forgot-row {
  margin: -0.15rem 0 0.85rem;
  text-align: right;
}
.auth-forgot-row .link-btn {
  font-size: 0.8rem;
  color: var(--auth-purple);
}

.auth-primary-btn {
  margin-top: 0.35rem;
  border: none !important;
  border-radius: 0.95rem !important;
  background: linear-gradient(90deg, var(--auth-purple), var(--auth-purple-deep)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.95rem 1rem !important;
  box-shadow: 0 8px 22px rgba(106, 61, 138, 0.28) !important;
}
.auth-primary-btn:hover {
  filter: brightness(1.05);
}

.auth-switch-hint {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--auth-muted);
}
.auth-switch-link {
  color: var(--auth-purple) !important;
  font-weight: 700 !important;
  font-size: inherit !important;
}

.auth-check-mock {
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--auth-muted);
}
.auth-check-mock input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--auth-purple);
  border-radius: 0.25rem;
  flex-shrink: 0;
}
.auth-check-mock a {
  color: var(--auth-purple);
  font-weight: 600;
  text-decoration: none;
}
.auth-check-mock a:hover {
  text-decoration: underline;
}

.auth-strength {
  margin: -0.25rem 0 0.65rem;
}
.auth-field-status {
  margin: -0.35rem 0 0.55rem 0.25rem;
  min-height: 1em;
}
.auth-google-block {
  margin-bottom: 0.25rem;
}
.auth-google-block .auth-legal-links {
  text-align: center;
  font-size: 0.75rem;
  color: var(--auth-muted);
  margin: 0.55rem 0 0.35rem;
}
.auth-google-block .auth-legal-links a {
  color: var(--auth-purple);
  font-weight: 600;
}
.auth-form-error {
  margin: 0 0 0.75rem;
}

/* —— Pact sheet —— */
#modal-pact .pact-sheet-mock {
  background: var(--auth-cream) !important;
  border-radius: 1.5rem 1.5rem 1.1rem 1.1rem !important;
  padding: 0.55rem 1.2rem 1.35rem !important;
  max-width: 26rem;
}
.pact-grabber {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(106, 61, 138, 0.22);
  margin: 0.2rem auto 0.65rem;
}
#modal-pact .pact-brand-name {
  font-family: var(--auth-serif);
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  font-weight: 700;
}
#modal-pact #pact-modal-title {
  font-family: var(--auth-serif);
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  margin: 0.4rem 0 0.5rem;
}
.pact-heart-burst {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0.15rem auto 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, #f3e9fa 0%, var(--auth-lilac) 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.12);
}
.pact-heart-main {
  color: var(--auth-purple) !important;
  font-size: 1.55rem !important;
  font-variation-settings: "FILL" 1;
}
#modal-pact .pact-lead {
  color: var(--auth-muted);
  font-size: 0.88rem;
}
#modal-pact .pact-intro { display: none; }

#modal-pact .pact-principles {
  gap: 0;
}
#modal-pact .pact-principle {
  align-items: flex-start;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(106, 61, 138, 0.12);
  padding: 0.95rem 0.15rem;
  gap: 0.85rem;
}
#modal-pact .pact-principle:last-child {
  border-bottom: none;
}
#modal-pact .pact-principle-icon {
  width: 2.55rem;
  height: 2.55rem;
  background: var(--auth-lilac);
}
#modal-pact .pact-principle strong {
  color: var(--auth-purple);
  font-size: 0.98rem;
  display: block;
  margin-bottom: 0.2rem;
}
#modal-pact .pact-principle p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--auth-muted);
}
#modal-pact .pact-principle-check,
#modal-pact .pact-policy-box {
  display: none !important;
}

#modal-pact .pact-accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.95rem !important;
  background: linear-gradient(90deg, var(--auth-purple), var(--auth-purple-deep)) !important;
  box-shadow: 0 10px 24px rgba(106, 61, 138, 0.28) !important;
  font-family: var(--auth-serif);
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 0.95rem 1rem !important;
}
#modal-pact .pact-accept-btn .material-symbols-outlined {
  font-size: 1.15rem;
  font-variation-settings: "FILL" 0;
}
#modal-pact .pact-foot-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--auth-purple);
}
#modal-pact .pact-foot-note .material-symbols-outlined {
  font-size: 1rem;
}
#modal-pact .pact-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--auth-muted);
}
#modal-pact .pact-legal-links a {
  color: var(--auth-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Yasal Temel hub —— */
.page-yasal-hub {
  background: var(--auth-cream);
}
.yasal-hub-wrap {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.15rem 5.5rem;
}
.yasal-hub-brand {
  position: relative;
  text-align: center;
  padding: 0.5rem 2.5rem 1.25rem;
}
.yasal-back-btn {
  position: absolute;
  left: 0;
  top: 0.35rem;
  border: none;
  background: transparent;
  color: var(--auth-purple);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.yasal-brand-name {
  margin: 0.35rem 0 0;
  font-family: var(--auth-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--auth-purple);
}
.yasal-brand-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--auth-purple);
  font-weight: 600;
}
.yasal-brand-sub span {
  width: 1.75rem;
  height: 1px;
  background: rgba(106, 61, 138, 0.35);
}
.yasal-brand-mark {
  display: block;
  margin: 0.55rem auto 0.85rem;
  color: var(--auth-purple);
  font-size: 1.35rem !important;
  font-variation-settings: "FILL" 1;
}
.yasal-hub-brand h1 {
  margin: 0;
  font-family: var(--auth-serif);
  font-size: 1.75rem;
  color: var(--auth-purple);
  font-weight: 700;
}
.yasal-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.yasal-doc-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(106, 61, 138, 0.08);
  box-shadow: 0 6px 18px rgba(45, 27, 61, 0.05);
  text-decoration: none;
  color: var(--auth-purple);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.yasal-doc-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(45, 27, 61, 0.08);
}
.yasal-doc-ico {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--auth-lilac);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.yasal-doc-ico .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--auth-purple);
}
.yasal-doc-label {
  flex: 1;
  font-family: var(--auth-serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.yasal-doc-chevron {
  color: var(--auth-purple);
  opacity: 0.7;
}

@media (min-width: 641px) {
  #modal-login .auth-sheet {
    margin-top: 2vh;
  }
}
