:root {
  --auth-primary: #1d4ed8;
  --auth-secondary: #0f766e;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-card: rgba(255, 255, 255, 0.82);
  --auth-border: rgba(148, 163, 184, 0.35);
  --auth-control-height: 46px;
  --auth-control-radius: 12px;
  --auth-field-gap: 12px;
}

* {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--auth-text);
  background: linear-gradient(130deg, rgba(224, 236, 255, 0.24) 0%, rgba(217, 249, 243, 0.20) 48%, rgba(248, 250, 252, 0.22) 100%), var(--auth-bg-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

.auth-bg,
.auth-bg::before,
.auth-bg::after {
  content: "";
  position: fixed;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.auth-bg,
.auth-bg::before,
.auth-bg::after {
  display: none !important;
}

.auth-bg {
  right: -12vmax;
  top: -15vmax;
  background: radial-gradient(circle at 30% 30%, #60a5fa, transparent 66%);
  animation: authFloatA 16s ease-in-out infinite;
}

.auth-bg::before {
  left: -60vmax;
  top: 36vmax;
  background: radial-gradient(circle at 40% 40%, #2dd4bf, transparent 62%);
  animation: authFloatB 18s ease-in-out infinite;
}

.auth-bg::after {
  left: -28vmax;
  top: 6vmax;
  background: radial-gradient(circle at 40% 40%, #93c5fd, transparent 66%);
  animation: authFloatC 14s ease-in-out infinite;
}

@keyframes authFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 26px) scale(1.06); }
}

@keyframes authFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -16px) scale(0.96); }
}

@keyframes authFloatC {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, -22px) scale(1.05); }
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-with-tophead .auth-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}

.auth-page-head {
  width: min(1080px, 96vw);
  text-align: center;
  color: #0f172a;
  margin-bottom: 2px;
}

.auth-page-head .auth-logo {
  width: 66px;
  height: 66px;
  border-color: rgba(29, 78, 216, .35);
  background: rgba(255, 255, 255, .8);
}

.auth-page-title {
  margin: 8px 0 4px;
  font-size: 1.45rem;
  font-weight: 700;
}

.auth-page-subtitle {
  margin: 0;
  color: #334155;
  font-size: .96rem;
}

.auth-layout {
  width: min(1080px, 96vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(520px, calc(100vh - 160px), 620px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--auth-border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.48);
}

.auth-panel {
  padding: 18px 12px 5px;
  background: var(--auth-card);
  animation: panelIn .65s ease both;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.auth-panel form {
  margin-bottom: 10px;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-side {
  padding: 5px;
  color: #fff;
  background: linear-gradient(160deg, #1d4ed8 0%, #0f766e 100%);
  position: relative;
  height: 100%;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 48%);
}

.auth-side-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 5px;
}

.auth-logo {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.2);
}

.auth-title {
  margin: 14px 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
}

.auth-subtitle {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.auth-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .84rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
}

.auth-duyuru-box {
  margin-top: 12px;
  margin-left: 2px;
  margin-right: 2px;
  margin-bottom: 2px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.auth-duyuru-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-duyuru-text {
  margin: 0 0 8px;
  font-size: .9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  flex: 1;
  min-height: 0;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 6px;
}


.auth-duyuru-text::-webkit-scrollbar {
  width: 6px;
}

.auth-duyuru-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 10px;
}

.auth-duyuru-scroll {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  align-self: flex-end;
  margin-top: 4px;
  margin-bottom: 10px;
  cursor: pointer;
}

.auth-duyuru-scroll:hover {
  background: rgba(255, 255, 255, 0.24);
}

.auth-duyuru-files {
  margin-top: auto;
  padding-top: 0;
  margin-bottom: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-duyuru-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 7px 14px;
  font-size: .82rem;
  border-radius: 999px;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.auth-duyuru-file-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.28);
  opacity: .96;
}

.auth-form-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-form-text {
  margin: 0 0 18px;
  color: var(--auth-muted);
}

.auth-input-group {
  margin-bottom: var(--auth-field-gap);
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
}

.auth-register-page .auth-input-group,
.auth-login-page .auth-input-group,
.auth-forgot-page .auth-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-register-page .auth-label,
.auth-login-page .auth-label,
.auth-forgot-page .auth-label {
  order: 1;
  margin-bottom: 0;
  min-width: 120px;
  text-align: left;
  font-size: .86rem;
}

.auth-register-page .auth-input,
.auth-login-page .auth-input,
.auth-forgot-page .auth-input {
  order: 2;
  flex: 1;
}

.auth-register-page .auth-input {
  height: 36px;
  padding: 0 10px;
  font-size: .89rem;
}

.auth-register-page .auth-input-group {
  margin-bottom: 8px;
  gap: 8px;
}

.auth-input {
  width: 100%;
  height: var(--auth-control-height);
  border-radius: var(--auth-control-radius);
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.auth-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
  transform: translateY(-1px);
}

.auth-btn {
  width: 100%;
  height: var(--auth-control-height);
  border: 0;
  border-radius: var(--auth-control-radius);
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.25);
}

.auth-links {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .92rem;
}

.auth-links a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links-under-btn {
  margin-top: 2px !important;
  padding-top: 0 !important;
}

.auth-links-inline-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
}

.auth-btn-mini {
  width: auto;
  height: auto;
  min-height: 32px;
  padding: 7px 10px;
  font-size: .82rem;
  line-height: 1.2;
  white-space: nowrap;
}

.auth-btn-split {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.auth-duyuru-files-spaced {
  margin-top: 10px;
}

.auth-register-page .auth-panel .auth-duyuru-files {
  margin-top: auto;
  padding-top: 0;
}



@media (max-width: 920px) {
  :root {
    --auth-control-height: 44px;
    --auth-field-gap: 10px;
  }

  .auth-with-tophead .auth-container {
    gap: 10px;
    padding-top: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-page-head {
    margin-bottom: 0;
  }

  .auth-page-head .auth-logo {
    width: 56px;
    height: 56px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    width: min(1080px, 100%);
    height: auto;
  }

  .auth-panel {
    height: auto;
    overflow-y: visible;
  }

  .auth-side {
    order: -1;
    min-height: auto;
    height: auto;
  }

  .auth-login-page .auth-panel,
  .auth-register-page .auth-panel,
  .auth-forgot-page .auth-panel {
    order: -1;
  }

  .auth-login-page .auth-side,
  .auth-register-page .auth-side,
  .auth-forgot-page .auth-side {
    order: 0;
  }

  .auth-register-page .auth-panel {
    min-height: auto;
  }

  .auth-duyuru-box {
    min-height: 180px;
  }

  .auth-duyuru-files {
    flex-direction: column;
    gap: 6px;
  }

  .auth-login-page .auth-panel .auth-duyuru-files {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .auth-login-page .auth-panel .auth-links-under-btn {
    margin-bottom: 22px !important;
  }

  .auth-duyuru-file-btn {
    width: 100%;
  }

  .auth-page-title {
    font-size: 1.2rem;
  }
}
