/* 전체 레이아웃 */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: #111827;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: #111827;
    color: #f9fafb;
}

/* 왼쪽 패널 */
.login-panel {
    flex: 1;
    max-width: 840px;
    padding: 64px 80px;
    background-color: #18181b;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.login-logo {
    width: 28px;
    height: 28px;
}

.login-site-name {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

/* 타이틀/설명 */
.login-content {
    max-width: 360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.login-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #f9fafb;
}

.login-desc {
    margin: 0 0 32px;
    font-size: 13px;
    color: #9ca3af;
}

/* 폼 공통 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 12px;
    color: #d1d5db;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #27272f;
    border-radius: 6px;
    border: 1px solid #3f3f46;
    padding: 0 12px;
    height: 42px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input-wrap:focus-within {
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.4);
}

.field-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #f9fafb;
    font-size: 13px;
}

.field-input-wrap input::placeholder {
    color: #6b7280;
}

/* 비밀번호 토글 버튼 */
.field-input-password {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #e5e7eb;
}

/* 로그인 버튼 */
.login-submit {
    margin-top: 8px;
    height: 44px;
    border-radius: 6px;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background-color: #fbbf24;
    color: #111827;
    transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 18px rgba(251, 191, 36, 0.35);
}

.login-submit:hover {
    background-color: #f59e0b;
    box-shadow: 0 10px 22px rgba(251, 191, 36, 0.45);
}

.login-submit:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.35);
}

/* 오른쪽 비주얼 영역 */
.login-visual {
    flex: 1;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-square {
    width: 220px;
    height: 220px;
    transform-origin: center;
}

/* 회전 애니메이션 */
@keyframes square-rotate {
    0% {
        transform: rotate(18deg) translateY(0);
    }
    50% {
        transform: rotate(198deg) translateY(-16px);
    }
    100% {
        transform: rotate(378deg) translateY(0);
    }
}

/* 반응형 */
@media (max-width: 1024px) {
    .login-panel {
        padding: 48px 40px;
    }
}
.login-content-logo{
    display:none;
}
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }
    .login-content-logo{
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 50px;
    }
    .login-panel {
        max-width: 100%;
        width: 100%;
        padding: 40px 24px 32px;
    }

    .login-visual {
        display: none;
    }

    .login-content {
        max-width: 100%;
    }
}
