body.page-login {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: linear-gradient(160deg, #FAF0E8 0%, #F5E3D5 60%, #EDD5C2 100%);
}

body.page-login:not(.page-consent) {
  background: #000;
  position: relative;
  overflow-x: hidden;
}

.login-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .35;
  z-index: 0;
}

body.page-consent .login-bg-video {
  display: none;
}

body.page-login:not(.page-consent) .login-wrap {
  position: relative;
  z-index: 1;
}

.page-login .login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  gap: 0;
}

.page-login .login-brand {
  text-align: center;
  margin-bottom: 40px;
}

.page-login .login-logo-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.page-login .login-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(192, 91, 42, .28), 0 2px 8px rgba(56, 37, 25, .12);
}

.page-login .login-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: .02em;
}

.page-login:not(.page-consent) .login-logo-text {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.page-login .login-logo-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
}

.page-login:not(.page-consent) .login-logo-sub {
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.page-login .login-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, .9);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 32px 28px 28px;
}

.page-login .login-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.page-login .login-field {
  position: relative;
  margin-bottom: 16px;
}

.page-login .login-field-email .login-field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--text-hint);
}

.page-login .login-field-email .login-field-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-login .login-field-email .login-input {
  padding-right: 48px;
  letter-spacing: 0;
}

.page-login .login-input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.page-login .login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 91, 42, .12);
  background: var(--surface);
}

.page-login .login-input::placeholder {
  letter-spacing: .04em;
  color: #C4AFA6;
  font-size: 14px;
}

.page-login .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login .toggle-pw svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-login .login-error {
  display: none;
  font-size: 13px;
  color: var(--danger);
  margin: -12px 0 14px;
  padding: 8px 12px;
  background: #FDF0F0;
  border-radius: var(--r-sm);
  border: 1px solid #F5CCCC;
}

.page-login .login-error.show {
  display: block;
}

.page-login .login-btn {
  width: 100%;
  height: 54px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(192, 91, 42, .35);
  transition: background .15s, transform .1s, box-shadow .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.page-login .login-btn:active {
  background: var(--primary-dark);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(192, 91, 42, .25);
}

.page-login .login-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-login .login-btn.loading {
  pointer-events: none;
  opacity: .7;
}

.page-login .login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 20px;
  line-height: 1.7;
}

.page-login .login-footer a {
  color: var(--primary);
  font-weight: 700;
}

.page-consent .consent-card {
  max-width: 400px;
  padding: 28px 24px 24px;
}

.page-consent .consent-section {
  margin-bottom: 24px;
}

.page-consent .consent-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-consent .consent-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.page-consent .consent-body p {
  margin-bottom: 12px;
}

.page-consent .consent-detail {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.page-consent .consent-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.page-consent .consent-list {
  font-size: 13px;
  padding-left: 4px;
}

.page-consent .consent-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.page-consent .consent-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
}

.page-consent .consent-list-safe li::before {
  background: var(--secondary-light);
  border-color: var(--secondary);
}

.page-consent .consent-back-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-sub);
}

.page-consent .consent-safe-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #DFF5E8, #C8EDDA);
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #1B6B3A;
}

.page-consent .consent-safe-banner svg {
  width: 20px;
  height: 20px;
  stroke: #1B6B3A;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.page-consent .consent-detail-shield {
  background: #F0FAF4;
  border: 1px solid #C8EDDA;
}

.page-consent .consent-label-safe {
  color: #1B6B3A;
}

.page-consent .consent-note {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
  line-height: 1.6;
}

.page-consent .consent-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-consent .consent-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.page-consent .consent-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-consent .consent-tip-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-consent .consent-tip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.page-consent .consent-tip-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}

@keyframes login-ripple {
  0% {
    transform: scale(0);
    opacity: .4;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.page-login .btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  animation: login-ripple .6s ease-out;
  pointer-events: none;
}
