@import "variable.css";

.login-container {
  box-sizing: border-box;
  min-height: 100svh;
  min-width: 0;
  padding: 5.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.login-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  /* width: 100%;
  min-width: 0; */
}
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}
.login-img {
  background: url("../images/login-img.png") no-repeat center / contain;
  /* width: 11.3125rem; */
  /* height: 9.875rem; */
  /* rem(루트 폰트) 영향 대신 viewport 기반으로 크기 조절 */
  width: clamp(2rem, 24vh, 11.3125rem);
  aspect-ratio: 181 / 158;
  height: auto;
}
.login-container h1 {
  padding: 0;
  margin: 0;
  color: var(--color-primary);
  font-weight: 300;
  font-size: 2em;
}
.login-title-desc {
  color: var(--gray-9);
  font-weight: 700;
  font-size: 0.75em;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.login-form .form-wrapper {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.login-form .login-remember-wrapper {
  display: flex;
  width: 100%;
  align-self: stretch;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}

.login-form .login-remember-wrapper label.login-remember-label {
  font-size: 0.875rem;
  color: var(--color-desc, var(--gray-9));
  cursor: pointer;
  user-select: none;
}

.login-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  width: 100%;
  min-width: 0;
}

/* SNS 로그인 (하단) */
.login-sns-section {
  align-self: center;
  width: 100%;
  max-width: 22rem;
  flex-shrink: 0;
  /* margin-top: auto; */
  padding-top: 0.5rem;
  box-sizing: border-box;
}

.login-sns-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.login-sns-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-d);
}

.login-sns-divider-text {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: var(--gray-9);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.login-sns-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.125rem;
  flex-wrap: wrap;
}

.login-sns-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.login-sns-btn:hover {
  opacity: 0.92;
  transform: scale(1.04);
}

.login-sns-btn:active {
  transform: scale(0.98);
}

/* public/images/common SVG(원형 배경 포함) */
.login-sns-btn--asset {
  background: transparent;
  overflow: visible;
}

.login-sns-img {
  width: 3rem;
  height: 3rem;
  display: block;
  vertical-align: middle;
}

.login-sns-disclaimer {
  margin: 1rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--gray-9);
  text-align: center;
  word-break: keep-all;
}
