/* auth.css — 로그인 전용 (tkdoor-web 구조 + daeshin 색상)
   daeshin 팔레트:
     brand     #252832  (다크)
     secondary #3A3E4C
     tertiary  #5F6476
     light     #9095A5
     border    #C0C3CE
     muted     #E3E4EA
*/

:root {
  --ds-brand: #252832;
  --ds-secondary: #3A3E4C;
  --ds-tertiary: #5F6476;
  --ds-light: #9095A5;
  --ds-border: #C0C3CE;
  --ds-muted: #E3E4EA;
}

body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ds-secondary), var(--ds-brand));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 2rem;
  font-family: 'Manrope', system-ui, sans-serif;
}

.ds-login-card {
  width: 100%;
  max-width: 1080px;
  min-height: 540px;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  background: var(--ds-brand);
}

.ds-slide-panel {
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: #FFFFFF;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.signup-mode .ds-slide-panel {
  transform: translateX(150%);
}

.ds-slide-panel::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: #FFFFFF;
  transform: skewX(-6deg);
  z-index: -1;
  transition: opacity 0.4s 0.15s;
  opacity: 1;
}
.ds-slide-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60px;
  width: 120px;
  height: 100%;
  background: #FFFFFF;
  transform: skewX(-6deg);
  z-index: -1;
  transition: opacity 0.4s 0.15s;
  opacity: 0;
}
.signup-mode .ds-slide-panel::after { opacity: 0; }
.signup-mode .ds-slide-panel::before { opacity: 1; }

.ds-slide-content {
  text-align: center;
  z-index: 2;
  padding: 0 1.5rem;
}

.ds-brand-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.75rem;
  border-radius: 16px;
  background: var(--ds-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ds-brand-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--ds-brand);
  letter-spacing: -0.5px;
  margin: 0 0 0.5rem;
}

.ds-brand-subtitle {
  font-size: 0.8125rem;
  color: var(--ds-light);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
}

.ds-form-area {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ds-login-area {
  right: 0;
  width: 60%;
  padding: 3rem 3.5rem 3rem 7rem;
  opacity: 1;
  visibility: visible;
}
.signup-mode .ds-login-area {
  opacity: 0;
  visibility: hidden;
}

.ds-signup-area {
  left: 0;
  width: 60%;
  padding: 2.5rem 7rem 2.5rem 3.5rem;
  opacity: 0;
  visibility: hidden;
}
.signup-mode .ds-signup-area {
  opacity: 1;
  visibility: visible;
}

.ds-form-row {
  display: flex;
  gap: 0.75rem;
}
.ds-form-row .ds-form-group {
  flex: 1;
}

.ds-input-wrap { position: relative; }
.ds-pw-match-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  display: none;
}
.ds-pw-match-icon.ds-match { color: #22C55E; }
.ds-pw-match-icon.ds-no-match { color: #EF4444; }

.ds-back-to-login {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.ds-back-to-login a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.ds-back-to-login a:hover {
  color: #fff;
  text-decoration: underline;
}

.ds-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.375rem;
}

.ds-form-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.75rem;
}

.ds-form-group {
  margin-bottom: 1.125rem;
}

.ds-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.4rem;
}

.ds-form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: var(--ds-brand);
  background: #FFFFFF;
  outline: none;
  transition: box-shadow 0.2s;
  font-family: inherit;
}

.ds-form-input::placeholder {
  color: var(--ds-light);
  font-weight: 400;
}

.ds-form-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.ds-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.25rem 0 1.5rem;
}

.ds-remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}

.ds-remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FFFFFF;
  cursor: pointer;
}

.ds-link-btn {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.ds-link-btn:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.ds-submit-btn {
  width: 100%;
  padding: 0.8125rem;
  background: var(--ds-tertiary);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ds-submit-btn:hover {
  background: var(--ds-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.ds-form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
}

.ds-auth-alert {
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ds-auth-alert-error {
  background: rgba(220, 38, 38, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

@media (max-width: 768px) {
  body.auth-body { padding: 1rem; }
  .ds-login-card {
    flex-direction: column;
    max-width: 420px;
    min-height: auto;
  }
  .ds-slide-panel {
    position: relative;
    width: 100%;
    height: auto;
    padding: 2.5rem 2rem;
  }
  .ds-slide-panel::after { display: none; }
  .ds-form-area {
    position: relative;
    width: 100% !important;
    padding: 2rem !important;
  }
  .ds-login-area { display: flex; }
  .ds-signup-area { display: none; }
  .signup-mode .ds-slide-panel { transform: none; }
  .signup-mode .ds-login-area { display: none; opacity: 0; }
  .signup-mode .ds-signup-area { display: flex; opacity: 1; visibility: visible; }
  .ds-form-row { flex-direction: column; gap: 0; }
}
