body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.login-logo .logo-img {
    width: 250px;
}

.logo-text {
    font-family: "Gmarket Sans";
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #333;
}

.login-layout-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    box-sizing: border-box;
    padding: 15px;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    min-width: 320px;
    padding: 40px;
    box-sizing: border-box;
}

.login-header {
    text-align: start;
    margin-bottom: 48px;
}

.login-header h1 {
    font-size: 18px;
    font-weight: 700;
}

.login-header p {
    font-size: 14px;
    color: #666;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.input-container {
    width: 100%;
    position: relative;

    @media (max-width: 576px) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 14px 16px;
    border: 1px solid #C7C8C9;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #979798;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: #D4025A !important;
}

.form-actions {
    margin-top: 48px;
    text-align: center;
    width: 100%;
}

.login-btn {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #D4025A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    padding: 13px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.form-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.form-links a {
    color: #666;
    text-decoration: none;
    margin: 5px 0;
}

.form-links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 0 10px;
    color: #ddd;
}

/* 에러 메시지 스타일 */
.error-message {
    color: #F3213B;
    font-size: 12px;
    margin: 5px 0;
    text-align: left;
    display: none;
}

/* 로그인 에러 메시지 스타일 */
#loginError {
    color: #F3213B;
    font-size: 12px;
    margin: 10px 0 0 0;
    text-align: center;
    white-space: pre-line;
    display: none;
    max-width: 100%;
    box-sizing: border-box;
}

/* 자동완성 배경색 제어 */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 로딩 팝업 */
.loading-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #D4025A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .form-group input {
        font-size: 16px;
    }
    
    .login-btn {
        width: 100%;
    }
}