/* https://css.denizkariyer.cloud/pages/login/login.css */

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;
  --brand2: #0ea5e9;
  --active: #0096c7;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background-color: #f3f4f6;
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.35)),
    url("https://static.denizkariyer.cloud/img/rg-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

/* ===== Layout ===== */
.page-wrapper {
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1040px;
  border-radius: 8px;
  padding: 1px;
  box-shadow: var(--shadow);
}

.login-left,
.login-right {
  border-radius: 8px;
}

.login-left {
  flex: 0 0 38%;
  padding: 32px 32px 40px;
  color: #e5f3ff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.4);
}

.left-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  user-select: none;
}

.ship-icon {
  width: 56px;
  height: 56px;
}

.left-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #fff;
}

.left-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
  margin: 0;
}

.login-right {
  flex: 1;
  padding: 32px 40px 40px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.login-form {
  width: 100%;
}

.title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 4px 0 4px;
  color: #1e3a8a;
}

.subtitle {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Float Field (enterprise görünümü) ===== */
.form-group {
  margin-bottom: 0.5rem;
}

.float-field {
  position: relative;
  width: 100%;
}

.float-field fieldset {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px 5px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
  position: relative;
}

.float-field fieldset:hover {
  box-shadow: 0 5px 5px -1px rgb(0 0 0 / 8%);
}

.float-field input {
  width: 100%;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  outline: none;
  position: absolute;
  left: 0;
  top: -8px;
  padding: 14px;
  color: var(--ink);
  z-index: 1;
}

.float-field legend {
  padding: 0;
  font-size: 12px;
  color: #a3a3a3;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  transform: translateX(5px);
  transition: max-width 0.25s ease;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.float-field.active legend {
  max-width: 200px;
  padding-right: 15px;
  color: #1e3a8a;
  font-weight: 700;
}

.float-field .placeholder {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  color: #999;
  pointer-events: none;
  transition: 0.25s;
  display: flex;
}

.float-field.active .placeholder {
  opacity: 0;
  transform: translateY(-35%);
}

.float-field:has(input:focus) fieldset {
  border-color: var(--active) !important;
  box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.12);
}

/* Password input: eye alanı */
#password {
  padding-right: 48px;
}

/* ===== Eye Toggle (enterprise birebir) ===== */
.eye-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #1e3a8a;
  z-index: 10;
  pointer-events: auto;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
  transform-origin: 50% 50%;
}

.eye-toggle:hover {
  transform: translateY(-50%) scale(1.04);
}

.eye-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.eye-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  border-radius: 10px;
}

.eye-toggle svg {
  display: block;
}

.eye-toggle .eye {
  display: inline-flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88) rotate(-6deg);
  filter: blur(0.2px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms ease;
  will-change: opacity, transform, filter;
  pointer-events: none;
}

.eye-toggle[data-state="off"] .eye-off {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
}

.eye-toggle[data-state="on"] .eye-on {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

  .eye-toggle,
  .eye-toggle .eye {
    transition: none !important;
  }
}

/* ===== Options / Checkbox (enterprise HTML+CSS birebir) ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 6px;
  font-size: 0.85rem;
}

.form-options a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 10px;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.form-options a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-options a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.1);
}

/* enterprise checkbox görünümü */

.check {
  position: absolute;
  height: 20px;
  width: 20px;
  border: 2px solid #1e3a8a;
  border-radius: 50%;
  top: 0px;
  left: 0;
  transition: 0.2s ease-in-out;
}

.checkbox input:checked~.check {
  background-color: #1e3a8a !important;
  border-color: transparent;
}

.checkbox input:checked~.check::after {
  border-color: #fff !important;
  /* kritik */
  border-style: solid;
  border-width: 0 2px 2px 0;
}

.check::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 9px;
  border: solid #ffffff00;
  border-width: 0 2px 2px 0;
  left: 6px;
  top: 2px;
  transform: rotate(46deg);
}

/* ===== Buttons ===== */
.btn {
  border: none;
  cursor: pointer;
}

.btn.btn--login {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.btn.btn--login .ic-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.btn.btn--login:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 55px rgba(30, 64, 175, 0.55);
  transform: translateY(-1px);
}

.btn.btn--login:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.4);
}

.btn.btn--login[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== Social ===== */
.social-login {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.625rem 1rem;
  font:
    600 15px/1.2 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.05s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.btn-social:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.btn-social:active {
  transform: translateY(1px);
}

.btn-social .ic-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.btn-social .label {
  white-space: nowrap;
}

.btn-social.google {
  background: #ea4335;
}

.btn-social.linkedin {
  background: #0a66c2;
}

/* ===== Register ===== */
.register {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: left;
}

.register a {
  color: #f6821f;
  font-weight: 600;
  text-decoration: none;
}

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

/* ===== Loading ===== */
.btn--login.is-loading,
.btn-social.google.is-loading {
  position: relative;
  pointer-events: none;
}

.btn--login.is-loading>*,
.btn-social.google.is-loading>* {
  opacity: 0;
}

.btn--login.is-loading::after,
.btn-social.google.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  transform: translate(-50%, -50%);
  animation: dk-spinner 0.8s linear infinite;
  z-index: 1;
}

@keyframes dk-spinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .login-card {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    min-height: 80vh;
    padding: 16px;
  }

  .login-card {
    flex-direction: column-reverse;
    border-radius: 22px;
  }

  .login-right {
    border-radius: 8px;
    padding: 24px 18px 26px;
  }

  .login-left {
    display: none;
  }

  .login-form {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .float-field fieldset {
    padding-right: 40px;
  }

  .form-options {
    align-items: flex-start;
    gap: 6px;
  }
}