                                                                        
                           
                                                                        
  
                                     
  
                                                                 
                                                                 
                         
  
                                                                     
                                                             
                                             
  
                                           
  
                                                        
                                                                       
                                                                   
  
                                                                     
                                                                     
                           
  
                                                                      
                                                                     
                                                            
  
                                                                      
                                                                    
                                                                   
                                                      
  
                                                            
                                                            
  
                                                  
                                                          
  
                                                                   
                                            
  
                                                                     
  
                                           
                                                                     
                                                                      
                                                       
  
                                   
                                                             
                                                           
                                                
  
                           
                                                              
                                                                 
                                                                   
                                                          
                                                                           

                                                                        
              
                                                                         
.jt-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

      
                                                                   
                                                             
       
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.jt-modal.is-open {
    display: flex;
}

                                                                        
             
                                                                         
.jt-modal-box {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;

                                                                    
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

                                                                        
                     
                                                                         
.jt-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #86868b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.jt-modal-close:hover {
    background: #f4f4f5;
    color: #414142;
}

.jt-modal-title {
    margin: 0 40px 25px 0;
    color: #414142;
    font-size: 24px;
}

                                                                        
                                  
                                                                         
.jt-modal-switch {
    display: flex;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
}

.login-type-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #86868b;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;

                                                      
    min-height: 44px;
}

.login-type-btn.active {
    background: #d91b5a;
    color: #fff;
}

                                                                        
        
                                                                        
                                                                
                                                                    
                
                                                                         
.jt-modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e2e4;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.jt-modal-input:focus {
    outline: none;
    border-color: #d91b5a;
}

.jt-modal-forgot {
    text-align: right;
    margin-bottom: 15px;
}

.jt-modal-forgot a {
    font-size: 13px;
    color: #d91b5a;
    text-decoration: none;
}

.jt-modal-submit {
    width: 100%;
    padding: 12px;
    background: #d91b5a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 44px;
}

.jt-modal-note {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.jt-modal-register {
    display: block;
    width: 100%;
    padding: 11px;
    background: #f4f4f5;
    border: 1px solid #e2e2e4;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: #414142;
    font-weight: 600;
    box-sizing: border-box;
    min-height: 44px;
    line-height: 22px;
}

                                                                        
         
                                                                           
@media (max-width: 768px) {

    .jt-modal {
        padding: 12px;

          
                                                                        
                                                                        
                                                         
           
        align-items: flex-start;
    }

    .jt-modal-box {
        padding: 22px 18px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .jt-modal-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .jt-modal-switch {
        margin-bottom: 18px;
    }

                                                                      
                                                           
                                                                      
                                                              
                                                                   
                                              
      
                                                                 
                                                                    
                        
                                                                       
    .jt-modal-input,
    .jt-modal-box input[type="email"],
    .jt-modal-box input[type="password"],
    .jt-modal-box input[type="text"] {
        font-size: 16px !important;
        padding: 13px 12px;
        margin-bottom: 12px;
    }

    .jt-modal-submit {
        font-size: 15px;
        padding: 13px;
    }

    .login-type-btn {
        font-size: 13.5px;
        padding: 11px 8px;
    }

    .jt-modal-close {
        top: 6px;
        right: 6px;

                                                   
        width: 44px;
        height: 44px;
    }

    .jt-modal-title {
        margin-right: 46px;
    }
}

                                                                        
                                                     
                                                                        
                                                                     
                                                       
  
                                                        
  
                                         
  
                                                         
                                                      
                                                     
                                                       
                                                   
                                                      
  
                                                    
                                                   
                                                                         
body.jt-modal-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

                                                  
                                                
body.jt-modal-open .jt-modal {
    touch-action: pan-y;
}

                                                                        
                                                
                                                                        
                                                               
                                                              
  
                                                                   
                                                               
                                              
  
                                                                     
                                                                
                                                                  
                                                                         
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px;
    }
}
